Jump to content
Sign in to follow this  
Luft08

BIS_fnc_stalk Question

Recommended Posts

The wiki says that an endDestination of "0" will make the stalker return to original group waypoints after the endCondistion becomes true.  Does anyone know if the waypointStatements are restored?

Share this post


Link to post
Share on other sites

The function's code can be viewed using the Functions Viewer (configFile -> A3 -> Combat).

 

It uses copyWaypoints command, but doesn't copy a waypoint's statements.  Whether the command itself would copy the statements over, I don't know, wiki doesn't say and I haven't tested.

 

But if groups are being deleted when empty, using 0 might be problematic.  At start, the function creates a group and a unit, copies waypoints from the stalker group, then deletes the unit, leaving the empty group holding the waypoints.  When stalking ends and endDestination == 0, the waypoints of the empty group are copied back to the stalker group.  If empty group has been deleted, wouldn't those waypoints be gone as well?

 

Any endDestination other than 0, it uses addWaypoint and doesn't add any waypoint statements.

  • Like 1

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  

×