Jump to content
Sign in to follow this  
jdbecks

trigger and waypoint help

Recommended Posts

having searched these forums I found the code needed, however Ive run into a small problem, this is what the trigger is for;

one a radar station ( Named RU ) has been destroyed, two a10s take off and bomb there designated targets, however the trigger Im using is not working,

on the waypoint for the a10s I have sync'd with a trigger, inside the trigger in the condition box is written

! alive RU

I have tried to use

This ! Alive [RU];

But it says ; is needed

Share this post


Link to post
Share on other sites

The spacing of the syntax is critical

this !alive RU;

should work but its best to change your object name to avoid possible name errors by having the same name as a standard object or entity. Not sure if "RU" is recognised as a class object?

I would suggest name the Radar Station "RUradar" or just "TaskA"

Share this post


Link to post
Share on other sites

!(Alive RU)

works well for me.

I agree to the namechange mentioned above.

Share this post


Link to post
Share on other sites

I still cant get this to work,

Ive been trying to test this, I named a USMC rifleman jdbecks, and got a insurgent pickup truck to move to me via a waypoint once i shoot my rifleman,

in the waypoint box under condition I typed this,

This !(alive jdbecks);

This !Alive jdbecks;

This ![alive jdbecks];

they all keep saying " Missing ; " unless I take away "This", but then the command deos not work,

Edited by jdbecks

Share this post


Link to post
Share on other sites

Try :-

not (alive RU)

lol just spotted the name change

Edited by ck-claw

Share this post


Link to post
Share on other sites

nope thats not working either

Edited by jdbecks

Share this post


Link to post
Share on other sites

What exactly is not working?

I've just placed an opfor dude (named him- RU)

Placed an UAZ far away

Placed a trigger 'condition' =

not (alive RU)

Then sync'd the trigger to the 1st move waypoint

Shot the dude and the UAZ came to my position

Share this post


Link to post
Share on other sites

I just copied what you done, and the uaz comes to my postion stright away,

I created an opfor dude, named him RU,

Created a trigger, in the condition box I wrote

not (alive RU)

I then created a move waypoint for the UAZ, and synced it with the trigger.

but the uaz drives to me, if i try to write this in the conidtion box it says missing ;

This not (alive RU);

This !(alive RU);

when I try to press enter, it says missing ;. so i can not input that command line in the trigger

Share this post


Link to post
Share on other sites

Sry you'll have to bare with me!;) Not had enough cider!

If the suggestion i sed works -whats the problem?

Share this post


Link to post
Share on other sites
This not (alive RU);

This !(alive RU);

That's incorrect syntax. You should not be using 'this' at all.

His example should work, unless you're doing something terribly wrong. Make sure your unit is properly named, make sure you put the condition in the correct field, and make sure the waypoint you synced it to is the one you want him to wait at, and not the one you want him to move to after the trigger fires.

Share this post


Link to post
Share on other sites
and make sure the waypoint you synced it to is the one you want him to wait at, and not the one you want him to move to after the trigger fires.

Ah yes forgot to mention that! My bad!

Place one waypoint right next to the UAZ (or whatever) snyc that one to the trigger!

Which will make it wait there till the trigger is fired!

Then another waypoint to the place you wnat it to move to! :cool:

Share this post


Link to post
Share on other sites
That's incorrect syntax. You should not be using 'this' at all.

His example should work, unless you're doing something terribly wrong. Make sure your unit is properly named, make sure you put the condition in the correct field, and make sure the waypoint you synced it to is the one you want him to wait at, and not the one you want him to move to after the trigger fires.

thats what I was doing wrong, did not relise I needed a waypoint for him to wait at.

cheers for help everyone

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×