Home   Help Search Login Register  

Author Topic: Help with simple (hopefully) script  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

ACtrigger

  • Guest
Help with simple (hopefully) script
« on: 01 Aug 2003, 20:54:24 »
Hi, I would like to make a script that would stop the enemy forces retreating. If this can be done without the use of a script then that would be helpful.

Thanks in advance,

~ACtrigger

(as a side note, the blue buttons at the top of the "new post" area (e.g. bold, italic, etc....) do not really fit in. Has anyone thougt of changing them?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Help with simple (hopefully) script
« Reply #1 on: 01 Aug 2003, 21:02:11 »
unit allowFleeing courage
Operand types:
    unit: Object or Group
    courage: Number
Type of returned value:
    Nothing
Description:
    Set group courage. The less courage, the sooner will group start fleeing. 0 means maximum courage, 1 means always fleeing.

Example:
    soldierOne allowFleeing 0


There's your script ;)
Not all is lost.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Help with simple (hopefully) script
« Reply #2 on: 01 Aug 2003, 21:02:51 »
Command :
AllowFleeing
 
Description :
Sets whether a unit or group can flee.
 
Syntax :
Name allowfleeing Number

Name is the name of a unit or group
number is either 0 or 1
0 unit/group will not flee
1 unit/group can flee
 
Returns :
-
 
Example :
MySoldier allowfleeing 0
group this allowfleeing 1


 
Proud Member of the Volunteer Commando Battalion

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Help with simple (hopefully) script
« Reply #3 on: 01 Aug 2003, 21:03:36 »
40 seconds  ::)
Proud Member of the Volunteer Commando Battalion

ACtrigger

  • Guest
Re:Help with simple (hopefully) script
« Reply #4 on: 01 Aug 2003, 21:06:59 »
lol, thanks guys.

@Messiah:

Its the thought that counts  ;)

EDIT: I guess thats solved  ;D
« Last Edit: 01 Aug 2003, 21:11:34 by ACtrigger »