Jump to content
Sign in to follow this  
ssm4862

detect player kill the hostage, AI fixed view

Recommended Posts

Hi everyone. Please answer my question.

Q1 : When it detects enemy(AI) player kills the hostage.

enemy name : Terrorists1, Terrorists2, Terrorists3

Q2 : The AI field of view is fixed in the desired direction.

Thanks for any help as always.

Share this post


Link to post
Share on other sites

Q1:

I assume you have a trigger for detecting player units (synchronized with player group) that executes on "west detected". In activation field you write "hostage setCaptive false" (assuming hostage is set to captive, and that is why they don't get shot in first place).

Q2:

Not sure what you mean. Do you want to fix enemy's view direction, or do you want to release it? Maybe the command "lookAt" can solve the problem.

Share this post


Link to post
Share on other sites

disableAI "move"? I dont remember if it stops them from rotating their view, but it would help. doTarget and doWatch are also good commands to use (keep them pointing at the hostages) if player detected then action ["UseWeapon", terrorist, 0] (dont remember exact syntax for this one)

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  

×