Home   Help Search Login Register  

Author Topic: Order any vehicle to halt.  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Order any vehicle to halt.
« on: 20 Aug 2003, 12:31:23 »
How can you order any west vehicle via a trigger to halt when it enters the trigger (i.e. at a camp entrance, at a checkpoint)?

Drozdov

  • Guest
Re:Order any vehicle to halt.
« Reply #1 on: 20 Aug 2003, 13:41:01 »
Try this in the On Activation trigger field...

vehiclename stop true

When you want it to move again, use this...

vehiclename stop false

I think this works.

Ace Productions

  • Guest
Re:Order any vehicle to halt.
« Reply #2 on: 20 Aug 2003, 14:16:49 »
Thanks Drozdov for the reply, but the problem is the vehicle's name is unknown as well as the driver's name.

Assume that you are the leader of an American squad and you steal a vehicle (any vehicle) from an enemy camp that has 10 vehicles and you assign any of your soldiers as driver.  :-\

Drozdov

  • Guest
Re:Order any vehicle to halt.
« Reply #3 on: 20 Aug 2003, 14:58:35 »
Ah... hmm, that complicates things. I don't know how to do this, sorry.  ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Order any vehicle to halt.
« Reply #4 on: 20 Aug 2003, 15:20:12 »
Thinking out loud here ... small trigger area ... try something like this, no idea if it will work or not ....


"(vehicle _x) setFuel 0" forEach units grpLoons
~10
"(vehicle _x) setFuel 1" forEach units grpLoons



Plenty of reviewed ArmA missions for you to play

Ace Productions

  • Guest
Re:Order any vehicle to halt.
« Reply #5 on: 20 Aug 2003, 15:52:00 »
My friend Macguba nothing! No luck! I've also tried "(_x) setFuel 0" forEach units grpname but nothing.

GrimMonkey

  • Guest
Re:Order any vehicle to halt.
« Reply #6 on: 20 Aug 2003, 16:34:08 »
It seems the only option left is to name the vehicle, best you can do mate.
Not to mention the simplest.

Ace Productions

  • Guest
Re:Order any vehicle to halt.
« Reply #7 on: 20 Aug 2003, 16:46:01 »
To GrimMonkey

Assume that you are the leader of an American squad and you steal a vehicle (any vehicle) from an enemy camp that has 10 vehicles and you assign any of your soldiers as driver.  :-\
Quote

If it happens that you play my mission I don't know which vehicle you are going to take or who you are going to assign as driver.

GrimMonkey

  • Guest
Re:Order any vehicle to halt.
« Reply #8 on: 20 Aug 2003, 16:53:09 »
I'm no expert on this but perhaps you could narrow it down. If that is not a possibility, try this:

1: name all the vehicles.
2: On the 'On Activation field try (I don't know if I'm right about this, ask around :)) putting vehiclename1 or vehiclename2 or vehiclename3 or vehiclename4  or vehiclename5 etc. in the command line :P.


I hope this works.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Order any vehicle to halt.
« Reply #9 on: 20 Aug 2003, 17:17:51 »
OK, I don't quite know how to do this..... but it seems to me that you may be able to extract the vehicles from the list of units in the trigger area by using the type command.

As an aside, I suggest  you experiment with a known, named vehicle to figure out the best way to make it stop.   That way, once we have figured out how to detect the vehicle, you'll know what to do to it.

Splitting the problem down into its constituent parts always helps.
Plenty of reviewed ArmA missions for you to play

peter

  • Guest
Re:Order any vehicle to halt.
« Reply #10 on: 20 Aug 2003, 17:56:28 »
if the playerÂ's also somewhere in the vehicle you could use something like:
(driver vehicle player) dostop true
or
(vehicle player) setfuel 0
...

and/or if he doesnÂ't want to stop:
[(driver vehicle player)] join grpNull; (driver vehicle player) dostop true; [(driver vehicle player)] join (group player)
« Last Edit: 20 Aug 2003, 18:01:24 by peter »