Home   Help Search Login Register  

Author Topic: Check If Soldier Is In Chopper  (Read 815 times)

0 Members and 1 Guest are viewing this topic.

CopyrightPhilly

  • Guest
Check If Soldier Is In Chopper
« on: 20 Jun 2004, 05:05:49 »
yo,

i'm after the command to check if the soldier is in the chopper or not

i tryed
?soldier1 incargo: goto "in"

but no joy

thanks in any help

cheers, philly
« Last Edit: 20 Jun 2004, 05:20:55 by CopyrightPhilly »

Dubieman

  • Guest
Re:Check If Soldier Is In Chopper
« Reply #1 on: 20 Jun 2004, 05:09:42 »
I just looked at it in CHOFPSE and it is something like

?soldier1 in_heli : goto "in"

Maybe check if the person is in the vehicle, not in cargo. Maybe your not specifing the vehicle so that's why it isn't working.

Not totally sure :-\

CopyrightPhilly

  • Guest
Re:Check If Soldier Is In Chopper
« Reply #2 on: 20 Jun 2004, 05:13:12 »
thanks for the quick reply, but still no joy with it.

cheers, philly

CopyrightPhilly

  • Guest
Re:Check If Soldier Is In Chopper
« Reply #3 on: 20 Jun 2004, 05:22:42 »
ok i used

?soldier1 in _chopper: goto"in"

but it didnt wait until the soldier was in the chopper, it just did it as the leader says to get in it.

any ideas? anyone

cheers, philly

Dubieman

  • Guest
Re:Check If Soldier Is In Chopper
« Reply #4 on: 20 Jun 2004, 05:31:06 »
Another shot in the dark without NVGs... :P

Howsabout a double arguement.

?soldier1 in_chopper && ?soldier1 incargo_chopper :goto "in"

Maybe, I've forgotten what and is, gawd I'm tired, anyways I've haven't been writing scripts lately so....
I was thinking you could do what you did originally and add another arguement to see when the soldier is actually in the chopper not ordered.  :-\

CopyrightPhilly

  • Guest
Re:Check If Soldier Is In Chopper
« Reply #5 on: 20 Jun 2004, 05:36:24 »
nar it just give me another error, thanks for the help anyway GuiltyRoachKilla , and have a good night

cheers, Philly

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Check If Soldier Is In Chopper
« Reply #6 on: 20 Jun 2004, 05:42:33 »
errm - lots of shots in the dark here  ::)  :D

how about:

?soldier1 in name_of_chopper: goto "in"

or how about:

?vehicle soldier1 == name_of_chopper: goto "in"

or:

?vehicle soldier1 == name_of_chopper AND soldier1 != driver name_of_chopper AND soldier1 != gunner name_of_chopper

or:

?vehicle soldier1 != soldier1: goto "in"

:note - the last one you should use only in case if you're sure
that soldier1 is only able to board that one chopper and nothing
else.

~S~ CD
« Last Edit: 20 Jun 2004, 05:43:57 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Check If Soldier Is In Chopper
« Reply #7 on: 20 Jun 2004, 13:23:55 »
How about:

@ soldier1 in _chopper : goto "in"

If that works I'll eat your brains as penalty for noobiness. ;D

:beat: *Gets Shot* :beat:

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:Check If Soldier Is In Chopper
« Reply #8 on: 20 Jun 2004, 19:29:34 »
As ever i have a better way  ;D

This will work for any chopper in the game: (hell it'll even work for planes ;) )

Code: [Select]
? "Air" counttype [vehicle soldier1] == 1 :  goto "in"

or use:

Code: [Select]
? "Helicopter" counttype [vehicle soldier1] == 1 :  goto "in"

if u strictly want it to be choppers.

EDIT:
Modified because mr. Death is right, i should have read more carefully & checked my coding for stupid mistakes ;)

« Last Edit: 20 Jun 2004, 21:21:53 by MachoMan »
Get those missions out there you morons!

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Check If Soldier Is In Chopper
« Reply #9 on: 20 Jun 2004, 20:29:07 »
 ::) there are so many spell to pick that you could use belt AND braces, hehe  ;D

condition:
?bob in Air1 AND ((vehicle bob) !=bob)


Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:Check If Soldier Is In Chopper
« Reply #10 on: 20 Jun 2004, 20:47:53 »
Yeah, but u ppl all asume 1 thing, that he knows wich chopper the player will end up in, wich doesn't have to be the case ofcourse.
Get those missions out there you morons!

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Check If Soldier Is In Chopper
« Reply #11 on: 20 Jun 2004, 21:08:44 »
@MachoMan;

first:

@anything: do anything

doesn't work

?anything: do anything

does work

second:

Philly was asking for a command to check if soldier1 is in
the chopper - which makes me feel he's been talking
about an specific chopper.

However, if you replace your @ by an ? the condition should
work too (except: soldier1 is not the player).

@BMOT  ;D - if bob is in air1 then his vehicle isn't worth to
be compared, wether it's him or not - it isn't for sure then.
Except: air1 is an array, but why would you use it to check
then anywayz.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted