OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: mrshambler on 25 Aug 2002, 20:16:52

Title: Vehicle respawn?
Post by: mrshambler on 25 Aug 2002, 20:16:52
How do i make vehicles respawn?

thx in advance!    :cheers:
Title: Re:Vehicle respawn?
Post by: Ugga on 26 Aug 2002, 17:05:02
create a script file, exec it and use the following lines :

? (NOT (alive "vehiclename")): "vehiclename"="vehicletype" createvechile getmarkerpos "markername"

do this for each vehicle you want to respawn

oh...and the script must loop

this should do it, if you then want the vehicles to spawn on init use the following lines

_playerList = [w1,w2,w3,w4]
Server = _playerList select 0
? (not (Player == Server)): exit

;(above lines are requried or BAD things will happend ;D )

? (NOT (alive "vehiclename")): "vehiclename"="vehicletype" createvechile getmarkerpos "markername"

that should do it

visit
http://ghm.spydar.com/
there you'll find a turorial
Title: Re:Vehicle respawn?
Post by: Mike on 06 Sep 2002, 05:22:51


[attachment deleted by admin]
Title: Re:Vehicle respawn?
Post by: Akodo on 06 Sep 2002, 06:20:35


[attachment deleted by admin]