Home   Help Search Login Register  

Author Topic: inVehicle command  (Read 434 times)

0 Members and 1 Guest are viewing this topic.

megatron

  • Guest
inVehicle command
« on: 17 Oct 2004, 13:29:25 »
I've tried to place the following line in a script

If ([p, ff2] in faDr) then {faDr DoMove GetPos ma1}

p and ff2 are infantry

faDr is an apc

I want faDr to move to the object named ma1 if the infantry are onboard.  The apc dosent move though, what do i need to make this happen?

m21man

  • Guest
Re:inVehicle command
« Reply #1 on: 17 Oct 2004, 16:15:40 »
Code: [Select]
?((p in faDr) && (ff2 in faDr)): faDr domove getpos ma1
You might also try replacing domove with move, I think that they have slightly different effects.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:inVehicle command
« Reply #2 on: 17 Oct 2004, 16:28:44 »
in does not work like that...

Instead try
if (p in faDr && ff2 in faDr) then {faDr doMove position ma1}

Should work but as usual, no guarantees... :P
« Last Edit: 17 Oct 2004, 16:31:20 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Apollo

  • Guest
Re:inVehicle command
« Reply #3 on: 17 Oct 2004, 21:32:30 »
Waddup megatron thought u may have died or something.....  ???