Hello community,
I've put together a script (Hydralift).
The lift goes under the water. So I've created an attach script.
I only have the problem that I can not fly with the hydra.
Here is my script:
lift = createObject ( 3115, 1515.3249511719, -2945.1364746094, -60, 0, 0, 0)
hydra = createVehicle ( 520, 1515.7152099609, -2945.6892089844, -10, 0, 0, 0 )
function Gate_down ()
moveObject (lift, 3115, 1515.3249511719, -2945.1364746094, 1.7000000476837, 0, 0, 0 )
end
addCommandHandler ("hydra1", Gate_down)
function Gate_Up ()
moveObject (lift, 3115, 1515.3249511719, -2945.1364746094, -60, 0, 0, 0 )
end
addCommandHandler ("hydra2", Gate_Up)
attachElements ( hydra, lift, 0, 0, 2, 0, 0, 0 )
addEventHandler ( "onVehicleEnter", getRootElement(),
function ( thePlayer, seat)
detachElements ( lift, hydra )
end
)
Can one help me?
Would be very nice
Best regards
JokersBro