OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: TC on 20 May 2005, 21:59:26
-
I am using AJMs respawn script to constantly spawn "Unified" Zombies around a player. However, all the player really has to do is find a car and drive off as the zombies take ages to catch up! I have tried to use triggers that folllow the player and detect the zombies and how far away they are, and this would be fine, but cant destroy them.
How would i be able to destroy the zombies when they get a certain distance away? Bearing in mind they dont have individual tag names. Alternatively someone may have a better idea...?
-
Mi way (a newbie's way) will setpos a trigger on the player's position, and set the amount of distance on the Trigger's Radius... and on the trigger add these:
Axis A: radius U want
Axis B: radius U want
Activation: East/resitance/west (the zombieÂ's side) and Present
name: nameofthetrigger
Condition: This
on activiation: {delethevehicle _x} foreach ! thislist
or something like that... not really sure about the
{delethevehicle _x} foreach ! thislist... cause I never used before the "! thislist"...
ha! and exec somewhere a script called whatever you like (could be "zombiearea.sqs") and put these
#loop
nameofthetrigger setpos getpos player
~0.1
goto "loop"
this I think could work.. it really need some work :o jejeje, but is a fast way....
Cheers!
;D