A_AvoidTarget

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: A_AvoidTarget

A_AvoidTarget

by questionmuppet » Mon Aug 01, 2005 1:04 pm

I would like to see an action function that made a monster avoid its target. I don't know how hard this would be, but wouldn't it amount largely to just flipping its angle before it moves? (If I am way off and this is really hard, please forgive the noob).

Anyway, then I could do something like this and have an actor that is afraid of the player:

States {

See:
SPRI A 0 A_JumpifCloser(SAFEDISTANCE, 5)
SPRI ABCD 4 A_Wander
Loop
SPRI ABCD 4 A_AvoidTarget
Loop
}

Top