Mateos Posted May 18, 2023 Share Posted May 18, 2023 (edited) 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 May 18, 2023 by Mateos Extra question! Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted May 19, 2023 Moderators Share Posted May 19, 2023 A table can't be passed to Wp.SetWaypointFlag. But you can use regular expressions. You can append .* to the parameter. Quote Link to comment Share on other sites More sharing options...
Mateos Posted May 19, 2023 Author Share Posted May 19, 2023 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 ); Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted May 19, 2023 Moderators Share Posted May 19, 2023 I will add possibility to set multiple navigation flags in the next Omni-bot version. PuNkReAS and Mateos 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.