![]() |
|
AI problem - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: AI Scripting (https://lf-empire.de/forum/forumdisplay.php?fid=56) +--- Thread: AI problem (/showthread.php?tid=8208) |
|
AI problem - professional DCer - 08-25-2012 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.) RE: AI problem - Ramond - 08-25-2012 I believe that id 0 will not work with scripts yet, try changing Template's id to a different number (and also rename 0.as appropiately). RE: AI problem - Som1Lse - 08-25-2012 You forgot a semicolon. The console reports these errors during compilation. RE: AI problem - Boop - 08-25-2012 (08-25-2012, 03:36 PM)Ramond Wrote: I believe that id 0 will not work with scripts yet, try changing Template's id to a different number (and also rename 0.as appropiately). Kind of true. It won't work with ego() because ego is never called on ID 0. RE: AI problem - professional DCer - 08-26-2012 Even after changing the id it did not work (08-25-2012, 04:19 PM)Someone else Wrote: You forgot a semicolon. oh sorry I forget to give the semicolon while writing the post. please someone help me. please someone help me. |