Jump to content
Sign in to follow this  
fernandolvferreira

setWaypointStatements is ruining my day...

Recommended Posts

So, I've been trying to script some waypoints for some teams... The problem is, I'm trying to script a condition into the waypoint, so the unit will only move after the condition has been fulfilled... The units should only move after a unit called TriggerAttack is dead, so I though "EASY!, (!alive TriggerAttack) should do the trick..."

 

This is what I scripted:

 

_wp = _group_east_3 addWaypoint[[3920.5579, 4488.0127, 0], 0, 1];
[_group_east_3, 1] setWaypointBehaviour "UNCHANGED";
[_group_east_3, 1] setWaypointCombatMode "NO CHANGE";
[_group_east_3, 1] setWaypointCompletionRadius 0;
[_group_east_3, 1] setWaypointFormation "NO CHANGE";
[_group_east_3, 1] setWaypointSpeed "UNCHANGED";
[_group_east_3, 1] setWaypointStatements[""!alive triggerAttack;"", ""];

Now... As some of you guys might know, it didn't work... This is what I'm getting in the .RPT file:

 

Spoiler

Error in expression <roup_east_3, 1] setWaypointStatements[""!alive triggerAttack;"", ""];

_wp =>
  Error position: <!alive triggerAttack;"", ""];

_wp =>
  Error Missing ]

 

 

Please... Help me... I'm going nuts and my wife is threatening to divorce me if I don't finish this thing and go to bed... Thanks a lot!

Share this post


Link to post
Share on other sites

Double quotes ("") and semicolon (;) in the condition statement may be the culprit.

 

Try:

[_group_east_3, 1] setWaypointStatements["!alive triggerAttack", ""];

 

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  

×