Home   Help Search Login Register  

Author Topic: waypoint with a sqs script?  (Read 962 times)

0 Members and 2 Guests are viewing this topic.

cirkut5732

  • Guest
waypoint with a sqs script?
« on: 13 Jul 2005, 20:40:58 »
Hey guys im back again!!

Just a quick question this time.

I have a loon about 15 feet from a jeep. I need him to walk to the jeep and mount in the jeep, but with a sqs script ONLY, I cannot use a waypoint with the mission editor, Now Ive tried just "loon moveindriver jeep" but he disappears and immediatley reappears in the jeep, looks very unrealistic. So what is the script command to make someone walk to a object, all ive tried is "loon goto jeep" but that didnt work obviously!
thanks guys

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:waypoint with a sqs script?
« Reply #1 on: 13 Jul 2005, 20:46:04 »
Code: [Select]
loon_name domove getpos jeep_name

#loop
~1
?not (loon_name distance jeep_name)<=2:goto "loop"

loon_name switchmove "StandGetInCar"
~1.5
loon_name moveindriver jeep_name

try that...
« Last Edit: 13 Jul 2005, 20:47:52 by bedges »

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:waypoint with a sqs script?
« Reply #2 on: 13 Jul 2005, 21:13:42 »
ha ha thats quite funney Loon goto jeep  :D
i remember trying that too,
why cant you use a waypoint?
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:waypoint with a sqs script?
« Reply #3 on: 13 Jul 2005, 23:19:46 »
the easiest way:

loon_name assignAsDriver jeep_name
[loon_name] orderGetin true

and if you want to wait until he is in the jeep to order him whatever you want:

@ vehicle loon_name == jeep_name
... put your orders here

Cheers

cirkut5732

  • Guest
Re:waypoint with a sqs script?
« Reply #4 on: 14 Jul 2005, 02:24:00 »
well i could use a waypoinr but its about 5 minutes into my cutscene and its all timed perfectly, I would need to set a trigger up in just the right spot, its time consuming so i figured id script it right when I want him to move, I will try these answers and get back to you all
thanks much!!!

cirkut5732

  • Guest
Re:waypoint with a sqs script?
« Reply #5 on: 14 Jul 2005, 03:27:29 »
Well i tried both those i can't get them to work so im gonna paste exactly how i wrote the script with your help, maybe you can see where i went wrong

first my loon is named terror1 and the jeep is named terrorcar

k bedges i typed yours like this
terror1 switchmove "effectstandsalute"
~1
terror1 domove getpos terrorcar

#loop
~1
?not (terror1 distance terrorcar)<=2:goto "loop"

terror1 switchmove "StandGetInCar"
~1.5
terror1 moveindriver terrorcar

and i got this error
'not (terror1 distance terrorcar)<=|#|2': Error not: Type Number, expected Bool

and alimag i did yours like this

terror1 assignasdriver terrorcar
terror1 ordergetin true
@ vehicle terror1 == terrorcar

and nothing happened.

Thanks again guys Ill be waiting LOL!


cirkut5732

  • Guest
Re:waypoint with a sqs script?
« Reply #6 on: 14 Jul 2005, 03:28:28 »
oh sorry, the salute thing is cause he salutes a loon then walks to jeep and gets in

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:waypoint with a sqs script?
« Reply #7 on: 14 Jul 2005, 04:13:00 »
try this:

? not(terror1 distance terrorcar <= 2):goto "loop"

cirkut5732

  • Guest
Re:waypoint with a sqs script?
« Reply #8 on: 14 Jul 2005, 04:39:51 »
well triggerhappy I dont get a error anymore, The loon doesnt do anything still but now it wont cut to the next scene now either? Ill check back in the morning. Thanks again for helping!!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:waypoint with a sqs script?
« Reply #9 on: 14 Jul 2005, 07:29:54 »
it could be that the initial switchmove animation is interfering with the loon. try taking the salute out, or alternatively adding a

Code: [Select]
loon_name switchmove ""
after the pause. either way, i've tried it and it works. see attached missionette.  8)

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:waypoint with a sqs script?
« Reply #10 on: 14 Jul 2005, 19:04:38 »
Quote
and alimag i did yours like this

terror1 assignasdriver terrorcar
terror1 ordergetin true
@ vehicle terror1 == terrorcar

and nothing happened.

Of course nothing will happend. The orderGetin command expect an array as parameter:

[terror1] orderGetin true

Cheers

cirkut5732

  • Guest
Re:waypoint with a sqs script?
« Reply #11 on: 14 Jul 2005, 23:25:08 »
Thanks guys I got it working, You guys are genius!!!! I hope at least one of you works for BIS it seems you guys have made the game 10x better than it its, (not that OFP isnt great anyways!!)