Jump to content

Home

Looking for a script


sekan

Recommended Posts

Hello,

 

Am looking for a script that gets if a npc is in combat. If the npc is in combat a action shall be run and if he is not in combat nothing shall happen. I tried creating a script of my own but It didn't work.

 

I get syntax error at { which I think means that I'm not using the Getisincombat properly or that I'm a complete moron sometimes when it comes to scripting and the whole script have to be re-made.

void main() {

object oStop = (OBJECT_SELF); 

If (GetIsInCombat(oStop))
{


SetLocalBoolean( oStop, 15, FALSE );
}
}

 

Could someone help me here please?

 

Thanks for talking your time to read this :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...