Jump to content
Sign in to follow this  
TimeDeatH

How to use the delete waypoint (basic)

Recommended Posts

deleteWaypoint [_grp, 2]

How would I go about using this? I want to set it in a trigger.

Do I put the group leader name in for _grp? Does 2 stand for the numbered waypoint?

Share this post


Link to post
Share on other sites

_grp is the group and the 2 is the number of the waypoint. Waypoint 0 is the spawn point of the group.

Share this post


Link to post
Share on other sites

So is the group name the name of the leader? And if it isn't where can I find the group name, btw kylania, I got the bmp-3 part of the mission working, I just need to figure out why they aren't getting in the heli. My guess is that I didn't put the correct name for the group, so it isn't deleting the get in bmp-3 waypoint, which is on hold untill the heli gets shot down.

Note using this code:

deleteWaypoint [grigori, 2];

Obviously the waypoint may or may not be 2, but the one i want to delete.

Grigori is the group leader.

Edited by TimeDeatH

Share this post


Link to post
Share on other sites

I haven't toyed with deleting waypoints yet but here's my 2 cents:

For the first issue, the group name is what you define it to be. To define a name for a group:

[i]groupName[/i] = group [i]unit[/i];

For example:

spetGrp = group spetLead;

This will take the group the unit named "spetLead" is in and name the group "spetGrp" for use in scripts and whatnot.

Not sure if using a unit name in place of a group name will work, as I said - haven't tried it. But now I'm curious and am about to boot it up to check it out.

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  

×