Hey guys,
I'm currently working on a fangame of Call of Duty Zombies with FPSC but with my own ideas and things, too.
The problem with the AI of the Zombies is I dont want to use the common rotatetoplr and the movefore=2 or something like this cause I want my zombies not to walk into walls if I'm behind them.
So I tried using the command aifollowplr=1 from DarkAI to let it follow me with more intelligence since my map will be more complex than only a squary room.
But if I use this command to let the zombie follow me it doesn't move at all.
I tried aisettarget and then aimovetotarget too, but the sometimes the zombie was even running away from me.
Here is the script:
desc = Random Melee Attack
;Triggers
:always:aisettarget
:state=0:state=5
:state=5:state=11
:state=11,plrdistfurther=50:sound=audiobank\zombie_apocalypse\shroudlinggrunt.wav,state=1
:state=1,plrdistfurther=50:aifollowplr=1,animate=92
:state=1,plrdistwithin=50:rotatetoplr,setframe=93,state=7
:state=7,framebeyond=93 80,plrdistwithin=60:plraddhealth=-20,state=8
:state=7:incframe=93,rotatetoplr
:state=7,frameatend=93:state=5
:state=8:incframe=93
:state=8,frameatend=93:state=5
Do you find any mistakes why aifollowplr isn't working?
Please respond this is important
Thx for taking your time, after all have a