Jump to content

Wp.SetWaypointFlag when several waypoints have the same name


Recommended Posts

Good afternoon,

I'm doing waypoints for a map which has team doors getting removed/added depending on destructibles

I have set the same name for multiple waypoints to add/remove the team and door flags, so it only takes 1 call to Wp.SetWaypointFlag per flag (with a function being passed true/false ofc)

Well, that's what I thought ^^' It is only performed on the 1st waypoint (lowest UID)

It does look like an overlook, since there's no issue naming several waypoints the same way (they have their UID), and I don't see the point giving each waypoint a different name to have a different call to the function ^^'

Extra question, haven't  tried it: can a table be passed to that function? According to Wiki only a string is expected

Edited by Mateos
Extra question!
Link to comment
Share on other sites

2 hours ago, palota said:

A table can't be passed to Wp.SetWaypointFlag. But you can use regular expressions. You can append .* to the parameter.

Ah, wasn't precise enough regarding the table, I meant something like:

Wp.SetWaypointFlag( "waypoint_name_given_to_several_waypoints", { "axis", "door" }, true );

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...