Jump to content
Sign in to follow this  
circassian

AI open the damn obj gate??

Recommended Posts

Ok guys, I give up. I've tried and searched a lot to know how to make the subject when closing to gate area. useless.. help

Share this post


Link to post
Share on other sites

I would suggest using a script-based solution. You can use the "distance" command to determine the distance between the AI unit and the gate (or a game logic object in its relative position, for houses with doors, etc.) and "animationPhase" to find out if the gate is already open, and then "animate" to make the gate do the animation. I'm not sure if it would be easier with the "action" command, but I've always had trouble when using this with the AI.

Here's a link to the OFPEC command reference - very, very useful: http://www.ofpec.com/COMREF/

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  

×