Jump to content
Sign in to follow this  
masterfulninja

Simple Ai actions

Recommended Posts

I'm making a stealth type mission where the player lands on a shore lit by campfires set by his comrades already on land. I want the two guys to walk over to the campfires and put them out as the boat lands for added cinematic effect. I'm assuming i can waypoint them there within action distance then script something to cause them to do the action? I know i can script the fires to go on and off manually but i don't want to go that route. Any help on scripting the ai to do it themselves?

Share this post


Link to post
Share on other sites

I did some research and this is really surprisingly easy. Place a fireplace and name it f1. Place a soldier named s1. Give the soldier a waypoint on top of the fireplace, in the "on Activation" field put

s1 action ["firePutDown", f1];

Just make sure to make the solder invincible with s1 allowDamage false;

Edited by R3vo

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  

×