08-25-2012, 03:34 PM
(This post was last modified: 08-26-2012, 03:41 AM by professional DCer.)
I have written this small script for template:
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.)
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.