Jump to content
Sign in to follow this  
mr.ben

changing AI behaviour

Recommended Posts

Hi,

I am trying to alter the behaviour of a partilcular set of enemy units.

The AI are set to be careless, in the init line of each unit using:

this setbehaviour "CARELESS";

When you are no longer present in a trigger area set to the buildings area, it runs a script which changes the AI behaviour using for example:

grpguard1 setbehaviour "AWARE";

grpguard2 setbehaviour "AWARE";

etc...

This works on a Listen server with no problems, but on a dedicated server it doesn't seem to alter their behaviour? The trigger definately fires as a hint appears on the screen. I am not sure why it doesnt work on ded. servers? I have tried various methods of using setcaptive commands for the player units, but this doesnt have the effect i want. I have also tried addrating and other commands but it gives me various problems.

Please could someone try to help me get round this issue of setbehaviour and make it work. Or is it possible another way to make this work?

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  

×