Home   Help Search Login Register  

Author Topic: Need some help please  (Read 439 times)

0 Members and 1 Guest are viewing this topic.

Dingmatt

  • Guest
Need some help please
« on: 26 Dec 2004, 15:45:10 »
I need to try and make a script where a heli respawns every time its killed with the same name "heli1". i can't figure it out, is it even possible?

Dingmatt

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Need some help please
« Reply #1 on: 26 Dec 2004, 19:32:45 »
#Loop

~0.1

?(getdammage heli1 > 0.9): goto "respawn"
goto "Loop"

#Respawn

heli setpos [x,y,z]
heli setdammage 0

goto "Loop"

...may get you started.

Dingmatt

  • Guest
Re:Need some help please
« Reply #2 on: 27 Dec 2004, 14:31:47 »
i never thought of that, thanks that will help alot


Dingmatt