Home   Help Search Login Register  

Author Topic: Script Doesn't Work  (Read 435 times)

0 Members and 1 Guest are viewing this topic.

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Script Doesn't Work
« on: 02 Mar 2003, 19:48:12 »
Any Ideas why this script doesn't work?

chp move getpos lz
chp land "LAND"
me AssignAsCargo chp
[me] OrderGetIn true
chp move getPos Chopper

It should order a chopper to move to an lz, then the player to get in, then the chopper should move away again

Any suggestions as to why this doesn't work?

Ace

  • Guest
Re:Script Doesn't Work
« Reply #1 on: 02 Mar 2003, 21:58:11 »
What actually happens when executed?

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Re:Script Doesn't Work
« Reply #2 on: 02 Mar 2003, 22:02:40 »
The chopper does not come and pick me up.  It must just stay where it is or go to the extraction marker

CrashnBurn

  • Guest
Re:Script Doesn't Work
« Reply #3 on: 03 Mar 2003, 06:25:33 »
Try this-

chp move getmarkerpos "lz"
pad = "HeliHEmpty" createvehicle getmarkerpos "lz"
@ Unitready chp
chp land "LAND"
@ (getpos chp select 2 < 3)
chp stop true
@ vehicle me == chp
chp stop false
chp move getmarkerPos "home"

exit

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Re:Script Doesn't Work
« Reply #4 on: 03 Mar 2003, 22:40:23 »
Thanks.