Home   Help Search Login Register  

Author Topic: Im stuck - Again !  (Read 650 times)

0 Members and 1 Guest are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
Im stuck - Again !
« on: 20 Jul 2003, 22:44:41 »
Hi all! I need help on 2 topics. One is concerning Helicopters and the other regarding  scripts to make units board their helo's at a certain point (in this case it is when an alarm goes off)

So here we have it -

1. ---  I have a heliopcter (Little Bird) at a base, there is one pilot and a high official that i want to be in the helo for the INTRO. I have used the command "this moveInCargo" for the high official - so he starts out in the helicopter - also i have used the folowing "this moveInCargo" for the high official to be a passenger of the pilot. The helo flys to all its waypoints - i want both units to get out of the  helo when it lands at a base on a H pad... the helo lands where i want it to and the pilot gets out and moves to where i want him to (with other pilots).. the problem is that the high official does not get out of the helicopters and move to where i want him positioned ..... i have tried unassigning him from the vehicle .. i have tried using both  GET OUT and MOVE waypoints but the little bugger just wobbles his god damn gun ...

2. ---  I have a small group of pilots that i want to get into their designated helo's when an alarm goes off (or any other condition) .... i htink i have to use a  number of triggers and a script to accomplish this .... am i right or wrong ? .........

Any ideas ppl ? LCD... Deaddog - any ideas boys ?

Regards

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Im stuck - Again !
« Reply #1 on: 20 Jul 2003, 22:53:11 »
           :D [bob] orderGetIn False

-should kick him outta the bird, matey! :thumbsup:

And ya can use the never failing:

          UnassignVehicle Bob

-to be 1000% sure! :) Just name the official "bob" in his name field when ya create him!  :-*



===========

you can also use a "Get Out" WP and syncronize it (F5 button, drag a line between the WP's) with the choppers "Transport Unload" WP.
« Last Edit: 20 Jul 2003, 22:54:19 by Tomb »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Im stuck - Again !
« Reply #2 on: 20 Jul 2003, 22:56:34 »
1. If everything else fails try setpossing him.
unitname setpos getpos gamelogicname
unitname setpos getmarkerpos "markername"
unitname setpos [x,y,z]

2. what ever you're using to set off the alarm, activate a script with it or these few lines

Quote
soldier assignAsDriver vehicle
Operand types:
    soldier: Object
    vehicle: Object
Type of returned value:
    Nothing
Description:
    Assign soldier as driver of given vehicle.

Example:
    player assignAsDriver tankOne

Quote
unitArray orderGetIn order
Operand types:
    unitArray: Array
    order: Boolean
Type of returned value:
    Nothing
Description:
    Force getting in vehicles to all units in the list.

Example:
    [unitOne, unitTwo] orderGetIn true

For example, if you have a trigger playing the alarm sound, type in it's activation field:
pilot1 assignasdriver helo1; pilot2 assignasdriver helo2; pilot3 assignasdriver helo3; [pilot1,pilot2,pilot3] ordergetin true
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Im stuck - Again !
« Reply #3 on: 21 Jul 2003, 11:34:05 »
2.   Waypoints and a switch trigger might do the trick.
Plenty of reviewed ArmA missions for you to play

Offline rhysduk

  • Former Staff
  • ****
Re:Im stuck - Again !
« Reply #4 on: 21 Jul 2003, 19:29:12 »
Thanks Macguba - i will try it and let you now -

Thanks again ;D

Just one question ? Whast "boolean" mean " ???
« Last Edit: 21 Jul 2003, 19:37:15 by rhysduk »
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

peter

  • Guest
Re:Im stuck - Again !
« Reply #5 on: 21 Jul 2003, 19:47:56 »
Boolean:

true or false

Offline rhysduk

  • Former Staff
  • ****
Re:Im stuck - Again !
« Reply #6 on: 21 Jul 2003, 20:02:38 »
Thanks Peter - much appreciated - Macguba i have one rpoblem --

i have made a script which is entitled pilotsinhelos.sqs and has the folowwing content :-

genpilot assignAsDriver genhelo
commander1 AssignAsCargo genhelo
dai1 AssignAsDriver comcop1
dai2 AssignAsDriver comcop1
dai3 AssignAsDriver comcop2
dai4 AssignAsDriver comcop2


that is everythign that is in the script and nothign else not showed.. understand ....

In the  On Activation feild of the Alarm trigger i have placed teh following :-

this exec "pilotsinhelos.sqs" . that is exactly what is there....

The game detects the script - so nothign wrong there --- nothing happens with the pilots tho ...

NOTE - commander1 AssignAsCargo genhelo ------ is the commander - high official which i want to be taken somewhere - as a fail safe sorta thing - ....

anyway i shall try the other way sugegsted by macguba- any ideas why this one dont work ????

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

KyleSarnik

  • Guest
Re:Im stuck - Again !
« Reply #7 on: 21 Jul 2003, 20:33:36 »
Another answer to your first question, try giving the pilot a TRANSPORT UNLOAD waypoint before his GET OUT waypoint. Syncronize it with the "high official's" GET OUT waypoint. THat might help

Offline rhysduk

  • Former Staff
  • ****
Re:Im stuck - Again !
« Reply #8 on: 21 Jul 2003, 21:01:56 »
Right then time for an update !

Question 1 is solved.

Question 2 still remains PARTLY unanswered....

Thx macguba - i now have it working thx to you and others !!!

I still have one remaining question -

The pilots are ordered to get in their designated helicopters but they do so as if they have all the time in the world.....lol...;D

I need to know do i GROUP the Alarm trigger to the um....nuts i forgot what ....... anyway..... or do i SYNCH[/colour] it ...

NOTE - i want to get the puilots to move faster - i know how to do this - (SetCombatMode and Behaviour etc) i ned to know what option i take to accomplish this and do i use a trigger or a script ????

Im stuck on the scrip though ....

rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Im stuck - Again !
« Reply #9 on: 21 Jul 2003, 22:08:38 »
Glad to hear its going well.    :)    Pop this line of script into the appropriate place, in a trigger or a script.    Don't put it in a waypoint, in that case just use the dropdown box.

groupOne setSpeedMode "FULL"

setBehaviour aware will be better than combat, in combat they might crawl, which is no good.

Not sure what you mean about grouping or synching the trigger, but hey, try them both and see which works.    Or let us know what's going wrong in more detail.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Im stuck - Again !
« Reply #10 on: 21 Jul 2003, 23:09:16 »
Quote
Any ideas ppl ? LCD... Deaddog - any ideas boys ?

y all of u keep asnwerin Qs dat r directed 2 me ::) :P

@ rhy

4 ur script - dont use WPs ;) :P

jsut add dere da next line

"[_X] ordergetin true" foreach [genpilot,commander1,dai1,dai2,dai3,dai4]

so da full script wil b

Code: [Select]
genpilot assignAsDriver genhelo
commander1 AssignAsCargo genhelo
dai1 AssignAsDriver comcop1
dai2 AssignAsDriver comcop1
dai3 AssignAsDriver comcop2
dai4 AssignAsDriver comcop2
"[_X] ordergetin true" foreach [genpilot,commander1,dai1,dai2,dai3,dai4]

;)

i think dat u shod synch da alram triger 2 da WP ;) if dat wat u meen ? ir u can just make it activate da script i gave ya up dere ;D

nd use setbehaviour nd setspeedmode commands 2 control deir speed nd position

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline rhysduk

  • Former Staff
  • ****
Re:Im stuck - Again !
« Reply #11 on: 22 Jul 2003, 19:09:05 »
Thanks LCD - it works perfectly - u really are a wizard - unless ur just got a big head - NO OFFENSE ;D

Thx again
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)