NPC fear function? Exists?

Hey. I am a total 0 (zero) in Lua coding. BUt I am just wondering is there a function in lua that by pressing mouse 2, would cause NPC’s to fear player? Like in mapping entitie “ai_relationship” it has function fear and then NPC runs away. SO is there a function like that in lua?


Is what your looking for I think.

Thanks, Have a wrench.


hmm cant seem to be able to rate.

No problem but next time you really should search, For example if you search NPC on
you get a nice list of what you need.