Jump to content


Photo

Death and respawn script?


  • Please log in to reply
1 reply to this topic

#1 Iciris

Iciris
  • Members
  • 15 posts

Posted 31 July 2006 - 04:57 PM

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

#2 Gumby22don

Gumby22don
  • Project Team
  • 144 posts
  •  AWD Development Team
  • Division:BFME
  • Job:Co-Designer: RoR 1 and 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
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users