Jump to content
Sign in to follow this  
nicomach

AI reman script

Recommended Posts

In my mission ai will get shot off from gunner positions, is it possible to have a trigger detect a AI has died and spawn after so long and reman his position?

Share this post


Link to post
Share on other sites

I had this same exact question but cant find a solution

For example I've created a small PMC base and a checkpoint guarding the road to it. Ive created an empty static TOW launcher and a PMC field tech with a way point to "get in" it.

I called him bob.

I created a second field tech with a move way point linked to wait for a trigger with the condition

!alive bob;

and heres where im stumped.... Ive tried get in, get in nearest, join, but the second field tech will not man the gun bob died using, since i cannot place a way point on another way point.

so whats the best way to do this? any help would be greatly apreciated

Share this post


Link to post
Share on other sites

Name the TOW launcher (tow1). Name the 2nd tech (bob2).

In the OnActivation field of the !alive bob trigger type:

bob2 assignAsGunner tow1; bob2 moveInGunner tow1;

When the check for !alive bob returns true it will assign and move bob2 into tow1

Share this post


Link to post
Share on other sites

Awesome, thank you!

EDIT:

I can work with this but is there a slightly different command that would order him to move to and enter the gun rather than teleport into it?

Edited by BLQQD

Share this post


Link to post
Share on other sites

I don't think so... if the 2nd guy is far away you could give him a waypoint to right beside the gun, then put the assign/movein line in the onAct of the waypoint.. otherwise I'm not sure. :p

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  

×