Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ShadowRanger24

AI Locality & allowDamage

Recommended Posts

So after using allowDamage on created units, it seems to be causing some issues where it stops working. So basically I create a unit with createUnit, call 'allowDamage false' on it and then put them inside the vehicle. They seem to occasionally lose their 'god mode' when they get into vehicles. Is this to do with locality? If so, would I just need to re-execute it on wherever the unit is local to? I read into unit locality and couldn't find much that states how their locality changes etc so I'm not 100% sure. Thanks in advance.

Share this post


Link to post
Share on other sites

I think your problem is, that your vehicle is still vulnerable. Try to make it invincible too.

Share this post


Link to post
Share on other sites
On 2/22/2017 at 9:38 AM, ShadowRanger24 said:

seem to occasionally lose their 'god mode' when they get into vehicles. Is this to do with locality?

 

allowDamage description in the wiki suggests that it has global effect as long as it doesn't change locality so, as feldruebe points out, the command might affect the current vehicle of the unit only and when that is changed the command should be re-applied.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×