Jump to content
Sign in to follow this  
creartan

i want to put this EH into unit initialization via script how?

Recommended Posts

i want to put this into unit(unplayable ai) initialization via script how?

so i just need to copy the script into each unit init, how?

sorry im newbie in scripting, usually do it inside the editor, please help me.

this allowfleeing courage;

this enablefatigue false;

this addEventHandler ["HandleDamage",

{

_object = _this select 0;

_damage = _this select 2;

if((damage _object) + _damage > 0.9) then {0.9} else {_damage};

}];

Share this post


Link to post
Share on other sites

Always start everything at the bottom. Do a little bit at a time and get that stage perfected before you go up to the next stage.

Your first 2 commands are simple. They can be placed in the init field of the unit.

Microsoft Notepad is a text editor. Copy and paste this to Microsoft Notepad: this allowfleeing courage; this enablefatigue false;

Then copy and paste from Notepad to the init filed of your unit. By doing that you eliminate the fancy formatting of this forum and the fancy formatting of Word.

Once you are satisfied it works fine I can coach you to the next stage.

.

.

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  

×