Home   Help Search Login Register  

Author Topic: Get out waypoint --> move  (Read 1636 times)

0 Members and 2 Guests are viewing this topic.

Dominaatori

  • Guest
Get out waypoint --> move
« on: 09 Nov 2004, 20:32:23 »
Yes, I made a mission where yourself and an officer gets in to a jeep and then starts to drive to a Get Out waypoint nearby, but if u place a move waypoint after the get out way point nothing happens when the officer gets out of the jeep. Why is this ? He just stands there like there was no WP to go to ? ? ?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Get out waypoint --> move
« Reply #1 on: 09 Nov 2004, 20:45:34 »
Maybe you need to unassign him from the jeep first.


Planck
I know a little about a lot, and a lot about a little.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Get out waypoint --> move
« Reply #2 on: 09 Nov 2004, 21:31:15 »
you could have a trigger where he is supposed to get out, that is grouped to him so it will only work when he is there. (i'll call him officer for this little script)

activation:[] exec "waypoint.sqs"

waypoint.sqs
Code: [Select]
#check
?!officer in jeep:goto "addwaypoint"
~1
goto "check"

#addwaypoint
officer domove [coordinates]
exit

for coordinates you could have a game logic where ever he is supposed to go and then use getpos:
officer domove getpos GameLogic
« Last Edit: 11 Nov 2004, 23:47:58 by Triggerhappy »

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #3 on: 09 Nov 2004, 21:55:13 »
Ok I understand somehow, but um shouldnt u be able to do this with waypoints aswell ? Without scripting ? And the coordinates, how can u find out what they are ?
« Last Edit: 09 Nov 2004, 21:59:30 by Dominaatori »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Get out waypoint --> move
« Reply #4 on: 09 Nov 2004, 22:51:06 »
i personally have never had the problem, so i don't know.
for the coordinates, read the last 2 lines of my post..

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Get out waypoint --> move
« Reply #5 on: 09 Nov 2004, 23:06:49 »
How far away is the move waypoint?  
Plenty of reviewed ArmA missions for you to play

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #6 on: 10 Nov 2004, 11:58:19 »
not that far... and... Game Logic ? ? ?
« Last Edit: 10 Nov 2004, 11:58:47 by Dominaatori »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Get out waypoint --> move
« Reply #7 on: 10 Nov 2004, 12:08:46 »
It sounds like the move waypoint might be too close.    Try moving it a long way off and see if that helps.    If it does, then you can experiment to find a position that gives the right effect.    Maybe move the getout waypoint back a little.

A game logic is a special invisible unit which you place like any other unit.  (Find it in the drop down menu.)     It's very powerful.    I cobbled together a tutorial which is in the editors depot.
Plenty of reviewed ArmA missions for you to play

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #8 on: 10 Nov 2004, 18:01:47 »
Ok I got that working, thx trigger and macuba. Btw is there any better command then DoMove so you would get the: "Group, move to Tree at db21"
f.ex.?

CommandMove or CommandFollow maybe ?
« Last Edit: 10 Nov 2004, 18:04:47 by Dominaatori »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Get out waypoint --> move
« Reply #9 on: 10 Nov 2004, 18:47:55 »
The command to make a group move is (you've guessed it) move.
Plenty of reviewed ArmA missions for you to play

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #10 on: 11 Nov 2004, 12:55:03 »
ok now im going totaly mad !!! I wrote the script and no errors, but when I run it I get the message from the leader to go to the game logic but altho I used the domove command on him, HE DOESN'T MOVE !!!???

here is script:

;Checks if Officer is in car and then orders group to Gamelogic coordinates

_Officer = _this select 0
_Car = _this select 1
_Gamelogic = _this select 2
_Me = _this select 3

#loop
?!(_Officer in _Car): goto "gamelogic"
~1
goto "loop"

#gamelogic
_Officer DoMove getpos _Gamelogic
_Me CommandMove getpos _Gamelogic
exit

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #11 on: 11 Nov 2004, 16:12:57 »
Hmm I found out that if I use the ?! he will get out of the car but won't run for the next wp, BUT if I use only ? he will get out of the car and start running for the wp ?!?!?! WHY ????? If I use only ? I will get the radio signal: "Group move to tree at db21" while im in the car and I don't want that. I want so that the next order comes when the officer has stepped out of the car, and that can be done with ?! Why doesn't this work ? ? ?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Get out waypoint --> move
« Reply #12 on: 11 Nov 2004, 19:51:10 »
Try unassigning the officer from the car once he gets out, see if that helps.



Planck
I know a little about a lot, and a lot about a little.

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #13 on: 11 Nov 2004, 22:47:57 »
Sorry plank, didn't work :(

What could be wrong ? ? ?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Get out waypoint --> move
« Reply #14 on: 12 Nov 2004, 12:21:26 »
STOP!

Phrases like "if I use only the ? and not the !" make no sense whatsoever.    That's like saying "if I use setbehaviour command and not the drop command then ...."

Put this script to one side for a day or two.   Spend a little time with the command reference.   Make a couple of test/example scripts.   Get to understand the commands thoroughly.  If you don't fully understand the commands you'll never make a script that works.    

Computers are stupid.  If the loon is getting out of the car (or not) then he is doing it because that is what you told him to do.  
Plenty of reviewed ArmA missions for you to play

Dominaatori

  • Guest
Re:Get out waypoint --> move
« Reply #15 on: 12 Nov 2004, 22:16:42 »
Ok, I will. But I want to know if my script is right or not ?