OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: prodetar2 on 05 Jul 2007, 18:26:18
-
ok so ive been looking around here and there using search an all but nothing helps...
i have a black hummer (not by me, found it at gamepark) and i need myself (international black op, also from gamepark) to eject from the hummer this is what i used:
player action ["eject", "hum"]
i named me player and the hummer hum
but i dont eject out of the vehicle...
so how do i use that command then? i tried waypoint on activation, trigger onA but no luck :(
any help on this would be great. i also read something about unallow in a vehicle but that doesnt work either and i cant remember where i found that :dunno:
plz help me :D.
(planning on making a mission in F.E.A.R. style :D)
-
Um... your questions are a little confusing. :dunno:
Do you want to force the player to get out of the car and not be able to get back in? If so, you have have named your hummer in its name field in the editor. Let's say you named it myHummer.
Then:
player action ["EJECT", myHummer] fits the bill.
If you then want to prevent the player from re-entering the hummer:
myHummer lock TRUEwill lock it and:
myHummer lock FALSEwill unlock it.
Do not name yourself player. player is a command that returns the unit which is the player. Leave the unit unnamed, or name it something like p1, player1 or itchywiener
-
thats just my point...
player action ["EJECT", myHummer] DOESNT work...
you (the player) will not eject automaticly out of the car.. unless you press get out.
any other ideas?
thnx anyways
-
I tried this in the editor and it worked fine.
Placed myself in the editor in a hummer called 'fred'
In the init field of the hummer I put:
player action ["eject",fred]
Started the preview and there I was NOT in the hummer.
Second test:
Placed myself in the editor in a hummer called 'fred'
Made a radio trigger, radio Alpha, with 'player action ["eject",fred]' in the activation field.
Started the preview and there I was sitting in the hummer.
Activated the radio trigger and I was ejected.......no problems.
Planck
-
Prodetar2, check the syntax in Planck's example..
It's not ["eject","vehiclename"] but ["eject",vehiclename]..
-
Try:
player action ["EJECT", vehicle player]
That way it doesn't matter what vehicle the player is in.
-
great! Thobsons way worked :D didnt try the others but im sure theyll work just fine :D
thnx for the help folks :D ill call ya again when i need you :clap: :clap: :good: :cool2:
(OFFTOPIC: Abandoned Armies rule!! :good: :clap: :clap: :good:)