Anyone know how to make a script to where, if somthing dies it will respawn in a (x) seconds?
if so, can somone tell me the script for it
Death and respawn script?
Started by Iciris, Jul 31 2006 04:57 PM
1 reply to this topic
#1
Posted 31 July 2006 - 04:57 PM
#2
Posted 02 August 2006 - 04:14 AM
I can't remember the exact phrasing for the scripts, but you should be able to do:
Repetitive script Hero_Check (every sec or so):
If *NOT* Team (Player1team) contains object (Hero1) then
Respawn_Count = 10
Enable Script (Hero_Respawn)
Disable Script (Hero_Check)
Hero_Respawn can be run every second:
If variable (Respawn_Count) > 0 then
Respawn_Count - 1
else
Spawn unit (Hero1) on team (Player1team) at location (x)
endif
Don
have a great day
Repetitive script Hero_Check (every sec or so):
If *NOT* Team (Player1team) contains object (Hero1) then
Respawn_Count = 10
Enable Script (Hero_Respawn)
Disable Script (Hero_Check)
Hero_Respawn can be run every second:
If variable (Respawn_Count) > 0 then
Respawn_Count - 1
else
Spawn unit (Hero1) on team (Player1team) at location (x)
endif
Don
have a great day
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users