Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI problem
#1
I have written this small script for template:
    C-Code:
int ego(){
if (self.state == 14){
clr();
print("Ouch!, that hurts");
}
return 0;
}

and I have saved it as "0.as" in the AI folder.

I wanted to do somthing like when template will go to lying state, the console will show the text "Ouch!, that hurts". But when template goes to lying state the console shows nothing. Please anyone help me and state the mistakes in this script.
Thanks!
(Remember that I am just a noob in AI scripting.)
Life is like a bicycle; to keep your balance, you must keep moving.
Reply
Thanks given by:


Messages In This Thread
AI problem - by professional DCer - 08-25-2012, 03:34 PM
RE: AI problem - by Ramond - 08-25-2012, 03:36 PM
RE: AI problem - by Boop - 08-25-2012, 05:32 PM
RE: AI problem - by Som1Lse - 08-25-2012, 04:19 PM
RE: AI problem - by professional DCer - 08-26-2012, 03:24 AM



Users browsing this thread: 2 Guest(s)