Home   Help Search Login Register  

Author Topic: when can i shoot  (Read 1092 times)

0 Members and 1 Guest are viewing this topic.

robertfox7

  • Guest
when can i shoot
« on: 13 Oct 2002, 05:09:17 »
 ??? i have a combination of 2 ?'s to ask in this topic  ???

ok first of all i am making a king of the hill with west east res. cilv
now i want to make all ppl immortal until they get say 100m away from the area that they will have conquered for the king of the hill and i also want them NOT to be able to shoot untill they get to the same area

   ;) ;D 8) hope yall understand the ?  8) ;D ;)

seanver

  • Guest
Re:when can i shoot
« Reply #1 on: 13 Oct 2002, 12:57:06 »
I think that neither of those things can be done. As far as I know you can't make a unit (played by a human) inmortal. At least I've tried it many times with a script like this:

Code: [Select]
#loop

? (getdammage unit > 0.99) : goto "live"

#live

unit setdammage 0

goto "loop"


Yes, the guy will be alive again, but the game will end, as if you had died.

And about the second, the only thing you could do is remove the clips.

lilmat

  • Guest
Re:when can i shoot
« Reply #2 on: 13 Oct 2002, 16:19:14 »
Ok well this one is not too hard ;) For units you want to stay
alive, in a script put, unitname setcaptive true
this will make sure the enemy don't shoot at them. You could
also have some enemy unit to fire at cars or such, for
combat ambeience! For the second part, in a script put;
unitname setbehaviour"blue" I think thats the right one?
This will stop them from firing. 8)

FlidMerchant

  • Guest
Re:when can i shoot
« Reply #3 on: 13 Oct 2002, 18:28:21 »
I think he means for a multiplayer mission,  but that would work mostly for single player.

Offline Blanco

  • Former Staff
  • ****
Re:when can i shoot
« Reply #4 on: 15 Oct 2002, 00:31:41 »
Hmmm ... just a tought... ::)

Remove their ammo and add it again when the action start...

Search or search or search before you ask.