Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: need help with Surrender script  (Read 663 times)

0 Members and 1 Guest are viewing this topic.

paper plane

  • Guest
need help with Surrender script
« on: 06 Jun 2004, 18:33:58 »
 How can I make an unarm unit see an enemy have weapon then he surrender, or some one shoot at him then he  surrender? (I want to make it in script )
« Last Edit: 06 Jun 2004, 18:38:01 by paper plane »

Loup-Garou

  • Guest
Re:need help with Surrender script
« Reply #1 on: 06 Jun 2004, 18:55:24 »
For the moment when enemy fires before unit surrender I suppose you'll to do something with the doFire command. Search in the forums. Then, for the unit's surrender, you have to put in the prisoner's init field : this setCaptive true (or in a script : prisonername setCaptive true) in order to avoid that the enemy shoots him (the prisoner). You also have several animations : FXStandSurUniv, or FXStandSurDown, or FXStandSur.

Hope it helps you  ;).

paper plane

  • Guest
Re:need help with Surrender script
« Reply #2 on: 07 Jun 2004, 07:10:23 »
thanks . I have download the "randomly surrender" script  from the Editors Depot and use in my mission. but I have found a bug: when the enemy soldier close to the unarm unit, he don't surrender and only run away or lie in the ground. (I found another bug: when some enemys close to the dead body, it will stand up and under surrender !! ??? ???)
« Last Edit: 07 Jun 2004, 07:11:03 by paper plane »