OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: STGN on 05 May 2003, 12:16:04
-
Spawn a vehicle, as soon as a unit comes below 1.2m under sea-level. Move the unit in the driver position. Let the vehicle remove itself from the game, as soon as it comes over a certain height.
Please tell me in ditails What this is and how to do it. :-[
STGN
-
It WOULD be a great help if ya simply enlightened us in yer secret mission instead of all this hushHush ::)
waddup with "a certain vehicle" or "a certain height" ???
Do ya wanna get in some boat to prevent any drowning accidents or wtf is going on here?!
:) Seriously, tell it man! Don't be so hushy! It's very hard to be hepful if we don't know sh*t :-X
-
wheaooell ummh hmm..
#start
_pheight = getpos player select 2
?(_h < 1.2): certainvehiclename = "certainvehiclestringname" createVehicle getpos player; player moveindriver certainvehiclename; goto "remove"
~0.1
goto "start"
#remove
_bheight = getpos certainvehiclename select 2
?_bheight > certainheight: deletevehicle certainvehiclename; exit
~0.5
goto "remove"
syntax not guarenteed :P