OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: PimpD on 17 Aug 2003, 20:19:34
-
is there any good Vehicle respawn for mp? :/
-
http://www.ofpec.com/editors/browse.php?category=1_4
Respawning Vehicles in MP
thats a script I found ,I really dont understand a thng :o
-
Ok I got it 2 work but... when I start the game it says
'1 setdammage 0|#|; plane1 setfuel 1; p1spawn=true': Error type number, expected Object.
gah Whats wrong :-X
I did everything it said.
-
i made triggers like he said i shud and i named the plane.
named the plane to plane1
I put
plane1loc=getpos plane1
in the initialisation field.
first one.
* Switch the trigger so it can be triggered repeatedly
Set it for a Countdown of 10 seconds All fields 10 seconds
* Condition: GetDammage plane1 > .5 or not (alive plane1)
* Activation: plane1 setdammage 0; plane1 setfuel 1; p1spawn=true; comy globalchat "Oh! it looks like Plane 1 has exploded!"
Second one.
Switch the trigger so it can be triggered repeatedly
Set it for a Countdown of 11 seconds All fields 11 seconds, also for the little bit of extra delay
* Condition: GetDammage plane1 > .5 or not (alive plane1)
* Activation: plane1 setdammage 0; plane1 setfuel 1; p1spawn=true
Third one.
Switch the trigger so it can be triggered repeatedly
Set it for a Countdown of 20 seconds All fields 20 seconds
* Condition: p1spawn
* Activation: plane1 setdammage 0; plane1 setfuel 1; plane1 setpos plane1loc; plane1 setdir 270; p1spawn=false; comy globalchat "Plane 1 has returned to its respawn location"
-
Ok got it almost 2 work now :o
My current problem is that when it get destroyed, it respawn in same spot as it got destroyed :/ not where I got the third trigger :-\
-
YaY it works !
But now.. it spawn up-side-down lol.
And it got full health and ammo, but it still looks like its destroyed.
*Edit* Know how take away teh annoying message you get when its respawns? :/
*Message*
'1 setdammage 0|#|; plane1 setfuel 1; p1spawn=true': Error type number, expected Object.