OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: mrshambler on 25 Aug 2002, 20:16:52
-
How do i make vehicles respawn?
thx in advance! :cheers:
-
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
-
[attachment deleted by admin]
-
[attachment deleted by admin]