Jump to content
Robustcolor

createGuardedPoint question

Recommended Posts

Hi, is it possible to move or delete a created guard point? Using the same command just creates multiple guardPoints.

createGuardedPoint [east, getMarkerPos "Marker1", -1, objNull];

 

Share this post


Link to post
Share on other sites

Have you tried

gp1 = createGuardedPoint [east, getMarkerPos "Marker1", -1, objNull];
gp1 setPos <new position>;

*edit* - Not sure if there is a way to assign a variable name/handler/identifier to this, which seems like an oversight. For that functionality, you might want to spawn "guarded by" triggers instead.

Share this post


Link to post
Share on other sites
On 2/12/2022 at 10:24 AM, Robustcolor said:

Hi, is it possible to move or delete a created guard point?

If things have not changed then, no.

 

There used to be an explanation somewhere on the wiki but cannot find it now. Use to say something like, Guarded points are created and then held internally by the engine they are not a game object but a list of points, once created they cannot be changed.

Most likely the reason createGuardedPoint does not return a reference.

 

Maybe something that's worth a feature request on the feedback tracker, always seemed like a wasted opportunity not to be able to change/update guarded positions.

  • Like 2

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

×