Jump to content
Sign in to follow this  
rekkless

How to give specific AI significantly more HP

Recommended Posts

I'm making a mission with 4 or 5 Terminator type robots in it (using Max Terminator Mod), however so far the machines die and bleed just like regular humans. Perhaps with a bit extra armor.

 

Anyway, is there a way to script in that specific units have 4 times (or more) HP than they should normally. 

It should be noted I do't want them invincible just that they are hard to kill.

I've tried putting this in the init box in the editor:
 

this addEventHandler ["HandleDamage", {(_this select 2)/4)}];

 

But it just spits out an error.

Any ideas?

Share this post


Link to post
Share on other sites

Count the amount of round brackets.

A giveaway for any text editor supporting .sqf syntax highlighting.

 

Cheers

Share this post


Link to post
Share on other sites
3 hours ago, LSValmont said:

Use my BossAi script:

 

Cheers

 

 

Does it work OK with ACE Medical?

Share this post


Link to post
Share on other sites
Just now, rekkless said:

 

 

Does it work OK with ACE Medical?

 

Not tested but it should work as long as the unit you are giving custom HP to does not have Ace Medical enabled. (Since ACE probably overwrites damage eventHandlers)

 

Give it a try and if it doesn't work I will see what I can do to fix it for you.

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  

×