Jump to content
Sign in to follow this  
barbolani

setWaypointHousePosition in scripted waypoints

Recommended Posts

Hello, I have an issue while trying to create waypoints via script. For the position I place a simple gamelogic, in some building position, at certain height (roof), and when I create the waypoint via script, the position is related to the GL.

Well, ingame the waypoint appears on the floor.

I tried to use setWaypointHousePosition but seems to ignore this.

I'm sure I am missing something.

Help?

Thanks in advance.

Share this post


Link to post
Share on other sites

I tested in A2/OA and this works, without the last line it also didn't work.

build = nearestObject [gl, "House"];

wp0 = group grp addWaypoint [ getPos build, 3];

wp0 setWaypointType "move";

wp0 setWaypointHousePosition 4;

wp0 waypointAttachObject build;

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  

×