sekan Posted July 22, 2008 Share Posted July 22, 2008 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 More sharing options...
Tupac Amaru Posted July 22, 2008 Share Posted July 22, 2008 "if" should be in lower-case characters. Link to comment Share on other sites More sharing options...
sekan Posted July 22, 2008 Author Share Posted July 22, 2008 How could I have missed that? Thanks for the help it works now Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.