OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: illmatic on 23 Apr 2004, 19:29:07
-
aP is the player and im wanting to force his engine off and on.
aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]
~3
aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]
~3
aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]
these commands dont force him too... any ideas ??? :-X
if ur wondering why i want the engine on and off, its because of engine failure.
-
Try:
aP action ["ENGINEON", vehicle aP]
Planck
-
aP is the player and im wanting to force his engine off and on.
Not sure if you can use this command for Player controlled units.
try instead:
planename setfuel 0
and
planename setfuel 1
to simulate engine failure
-
Hmmm........I should read the whole post properly.
I forgot aP was the player.
;D
Planck
-
:(, with the fuel method i already tried it, the engine doesnt turn back on once you refil the fuel.
-
I think engineon is a vehicle situation, not a unit, so try
vehicle player engineon true
vehicle player engineon false
or may require:
vehiclenameengineon true(and false)
I know, people are vehicles too but in this situation, vehicle actually does mean vehicle!
-
vehicle player engineon true
vehicle player engineon false
This does work, however if the player presses forward the engine will not stay off
The engine will be switched off again once the player releases his forward key, provided he is still withih the trigger area.............I used a trigger to switch engine off and the player init field to switch it on at the beginning.
Maybe in combination with setfuel 0 this will work
Planck
-
ook guys thx, works