Home   Help Search Login Register  

Author Topic: force player to eject  (Read 1360 times)

0 Members and 1 Guest are viewing this topic.

Offline prodetar2

  • Members
  • *
force player to eject
« 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)
BOOM!

"You are dead"

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: force player to eject
« Reply #1 on: 05 Jul 2007, 18:59:07 »
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:
Code: [Select]
player action ["EJECT", myHummer] fits the bill.
If you then want to prevent the player from re-entering the hummer:
Code: [Select]
myHummer lock TRUEwill lock it and:
Code: [Select]
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
« Last Edit: 05 Jul 2007, 19:01:55 by Mr.Peanut »
urp!

Offline prodetar2

  • Members
  • *
Re: force player to eject
« Reply #2 on: 05 Jul 2007, 19:22:11 »
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
BOOM!

"You are dead"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: force player to eject
« Reply #3 on: 05 Jul 2007, 19:36:36 »
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
I know a little about a lot, and a lot about a little.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: force player to eject
« Reply #4 on: 05 Jul 2007, 21:31:14 »
Prodetar2, check the syntax in Planck's example..

It's not ["eject","vehiclename"] but ["eject",vehiclename]..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: force player to eject
« Reply #5 on: 05 Jul 2007, 22:13:59 »
Try:
player action ["EJECT", vehicle player]

That way it doesn't matter what vehicle the player is in.

Offline prodetar2

  • Members
  • *
Re: force player to eject
« Reply #6 on: 05 Jul 2007, 23:38:37 »
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:)
« Last Edit: 05 Jul 2007, 23:40:11 by prodetar2 »
BOOM!

"You are dead"