Jump to content
Sign in to follow this  
behoram

making a unit walk into a building position

Recommended Posts

HI,

anyone know how i can making a unit walk inside a specific building (using the building id) and into a specific position ?

Kind Regards

Wallace

Share this post


Link to post
Share on other sites

You tried with:setWaypointHousePosition ?

Something like:

_wp = _grp addWaypoint [position _building, 0];

[_grp, 1] setWaypointType "MOVE";

[_grp, 1] setWaypointPosition position _building; // dunno if this is needed

[_grp, 1] setWaypointHousePosition 1;

MAY eventually work (not tested at all, just an idea).

Edited by fabrizio_T

Share this post


Link to post
Share on other sites

For guaranteed results, with two actors whom I needed to be placed in strict positions, I got them to walk to a position using a waypoint, then setpos'd them to ensure they were exactly where I wanted them, then scripted their movement based on calling "playMove" animation calls with the walking animations etc...

This allowed me to ensure the same output occurred properly and reliably in multiplayer.

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  

×