View Single Post
  #4  
Old 03-26-2004, 03:24 PM
Sazza is offline Sazza
Registered User

Join Date: Aug 2003
Posts: 31

RollEyes Respawn in MP-play

This events below shows how to spawn a single destroyed AI or a group, and how to teleport them
alive into the map again. To the location that you and your teammate have not reached yet.
__________________________
Trigger Timeline.
When you shoot a single ssn or a group, it will lay dead there for 28 sec.
And then teleports to a Tele-MARKER way off, still dead.

He respawns after 30 sec. 2 sec after teleport. /when I teleported the group after the spawn.
I could see him/them standing up in total before teleporting away. Not pretty!

When you, or your teammate later on triggers a designated area-zon for a fight. The teleported and now alive group will teleport to a second and final target.
__________________________________________

I belive that a large amount of ssnĀ“s or groups that teleports
at once will create lots of lag.
____________________________
DOWNLOAD samplemission.

EVENTs & WAC-commands;

MED:
Event 0: Event 0
Triggers:
Group 3 has lost 1 or more units
Actions:
Set Mission Var#2 to 1

Event 1: Event 1 Delay event 28 seconds
Triggers:
Mission Var#2 is equal to 1 and
Group 3 has been destroyed
Actions:
Teleport group 3 to target 2

Event 2: Event 2
Triggers:
SSN 10000 is within area 1
Actions:
Teleport group 3 to target 1

_______________
WAC:
;respawn group 3

if not eq v1,1 and groupdead 3 then
set v1,1
endif

if eq v1,1 and never then
groupspawn 3,1
endif

if eq v1,1 and groupalive 3 and grouparea 3,1 then
set v1,0
endif
------------------------
fair warning. I have tested this with good results.
Try to keep in mind that each group or ssn that teleports/respawns need his own final teleport-marker.
Sazza
Reply With Quote