#20 Nov 22 2011, 9:26 pm
|
|
The combat AI is already typed to only attack /Player mobs. You also shouldn't be checking if things ==null, instead, use something like if(!M.key).
| |
#21 Nov 22 2011, 10:45 pm
|
|
Oh! My bad. I forgot I took that part out. Either way, if you want that bit taken out AND NPCs not to attack eachother because you don't want your mob to have a special path, that works too.
| |
#22 Dec 18 2011, 11:04 am
|
|
why does it say for me that level=1 is an undefined var
| |
#23 Dec 18 2011, 4:32 pm
|
|
Capital Level?
| |
#24 Mar 29 2012, 9:12 am
|
|
When my enemy attacks once close to me, it disappears. What should i go?
| |
#26 Apr 2 2012, 2:08 am
|
|
i need help i put the combat ai proc in but it says this;179:error: M: undefined type: M for every line with 'M'
| |
Michael.smith94 wrote:
When my enemy attacks once close to me, it disappears. What should i go? I think it's probably the flick, his enemy probably doesnt have the attack state. | |
#28 Apr 25 2012, 7:36 pm
|
|
I had the same issue with the disappearing enemies, except they were only visible when attacking. Turns out I forgot to specify a name for the enemy's walk state.
Another bit of weirdness I had was attacking myself if another enemy was out of range. Adding the following under the Attack verb right above the damage calculation cleared it up:
Thanks again for the Tutorials. They're a good kickstart even if they aren't perfect. | |
#29 May 3 2012, 11:16 pm
|
||
Hello Falacy
This is my AI system. But whenever I use this my CPU increase for 2%. What I want to do here is that when players are in AI oview(7-3) he will do projectile. My goal is also to prevent AI from facing them diagonally! I also want that if AI is in oview 2 he will walk to player and attack him once he is 1 step away from him. And while non player is in AI oview he will be teleported back to spawn and get his stats refreshed. Ty | ||
#30 May 4 2012, 5:15 am (Edited on May 4 2012, 5:23 am)
|
|||
There you go. Your code is a ton more complicated than it needs to be.
| |||
#31 May 14 2012, 9:55 am
|
|
ok i dont get this my enemy is not attacking watsoever it just sits there.. could it be because i set the enemy with map editor or wat??? btw yes ive been following since tut. 1
| |
