Home   Help Search Login Register  

Author Topic: LINKING TRIGGERS AND WAYPOINTS ?  (Read 1005 times)

0 Members and 1 Guest are viewing this topic.

Syphon

  • Guest
LINKING TRIGGERS AND WAYPOINTS ?
« on: 01 Dec 2002, 00:21:51 »
how would i do this

i want a helecopter to move to the player After he has radioed for help

micropilot

  • Guest
Re:LINKING TRIGGERS AND WAYPOINTS ?
« Reply #1 on: 06 Dec 2002, 05:48:48 »
There are a couple different ways you could do this. (scripts, Waypoints & triggers)

Heres an xample that uses triggers and waypoints:

Create a west man and name him aP.
Create a west UH-60 and name it chopper, also set his fuel to 0.  
Create a Waypoint for Chopper some distance away from unit Chopper (if its too close Chopper will mark it as complete without having to move)
Create a trigger near aP and have its AXIS a and b = 500. ACTIVATION by radio alpha, TEXT of Call Chopper, ON ACTIVATION line should read: [chopper, 1] setWPPos getPos aP;chopper setFuel 1

This will bring the chopper to location of aP when he calls on the radio.  However, this doesn't do anything about making the chopper land, etc.  These are interesting problems for you to sort out (or ask on the forum if you get stumped)

Syphon

  • Guest
Re:LINKING TRIGGERS AND WAYPOINTS ?
« Reply #2 on: 06 Dec 2002, 09:43:02 »
Hey i did it , but a bit differently

i made my own sqs and made a trigger that had a condition of Radio Alpha and the Activation of
  • exec "backup.sqs"


my first script

Swatdog

  • Guest
Re:LINKING TRIGGERS AND WAYPOINTS ?
« Reply #3 on: 09 Dec 2002, 21:58:31 »
Wasn't there a bug in 1.46 that in order to to Syncronize Triggers, and Waypoints together, you need two waypoints? One for the Object to move to, and another for The Syncroization.

EXAMPLE: You create a chopper, Set a Waypoint for the chopper to move somewhere, then if you want the chopper to pick up a group of Soldiers, you create another Waypoint as "Load" The link your Trigger to the Load waypoint. If you didnt Set 2 waypoints, then the chopper will move to the second waypoint as it's first waypoint. (I know, i made it sound all confusing. ;)) Anyway....Forget that. :P

There is another way you could do your chopper pick up.

First: Create a Trigger with both A and B Axis set as 999999 (All the "9's" will make the Trigger as big as the island) and an Activation set as either Radio Alpha, Bravo, Charlie, Delta, Echo, Foxtrot, etc... This will make your Radio constantly have a Radio Call button on it.

Second: Press ALT TAB and Create a new text document.  In the Document, Type: (I'm going to include alittle radio massage on the screen)

aP sidechat "yoursoldiermessagehere" (leave the quotes)
~5
chopper1 sidechat "yourchoppermessagehere"
chopper1 getpos aP

exit

(I think it's getpos in 1.46. I know it wont work in 1.75 - 1.90)

Now, i'm sure you know what to do about saving the file as .sqs and put it into your mission folder. :)

Three:
Go back into your game, Create a West soldier, name him aP.
Create a Chopper and name him chopper1.

(you can change your unit's name, but be sure to cyhange it in the script too!)

Then, Start your mission and Do the radio call and see if it works!

Like i said, the getpos command wont work in Resistance. (i'm a Resistance editing freak, but i dont do getpos's that much ;))

So if your editing in Resistance you need to ask someone what the getpos command for Resistance is. Or i will post again when i find out.

Good Luck!
Swatdog