Home   Help Search Login Register  

Author Topic: Badly wounded GI.  (Read 602 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Badly wounded GI.
« on: 19 Sep 2003, 16:13:24 »
Ok, what I've tried to do was to make a soldier of the 101st look really wounded after a barrage and not being able to move.

I've tried:


GI SetDammage 0.9
GI DisableAI  move
~0

PlaySound "Pain"

#Posing
?(BM==1):GoTo "Sorted"
~0.1
GI SwitchMove "LyingToTreatedLying"
Goto "Posing"
#Sorted
Exit

 
I'm the medic of my squad and it seems the guy likes me a lot cause he still crawls to come to me!!!  >:(
Also is there a way so the guy cannot be healed even though I'm near him?

Thanks for your time

Komuna

  • Guest
Re:Badly wounded GI.
« Reply #1 on: 19 Sep 2003, 17:15:59 »
EhEhEh! The guy realy likes you.

It's the DisableAI syntax that's wrong:

GI DisableAI "Move"

However, it won't leave that place anymore, as you can't "Enable" the AI.
Therefore, try using 'doStop GI' instead. If the GI is the only one in the group, set its direction with setFormDir.

 ;)
« Last Edit: 19 Sep 2003, 17:16:40 by Komuna »

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Badly wounded GI.
« Reply #2 on: 20 Sep 2003, 12:40:58 »
to keep his dammage at 0.9 simply loop the script resetting his damage


#START
@ getdammage  != 0.9
setdammage 0.9
goto "START"

the @ i believe loops at 0.5 seconds checking for the condition to be met
Depending on what you are doing it may be better to change the @ into a 1 second loop and simply just setdammage on that loop
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Ace Productions

  • Guest
Re:Badly wounded GI.
« Reply #3 on: 22 Sep 2003, 14:30:43 »
Komuna and Terox thanks a lot for your advice and your time.