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?

Thanks.

**[NPC.AddRelationship

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=NPC.AddRelationship)**
Is what your looking for I think.

Thanks, Have a wrench.

[editline]03:05PM[/editline]

hmm cant seem to be able to rate.

No problem but next time you really should search, For example if you search NPC on http://wiki.garrysmod.com/?title=Special:Search
you get a nice list of what you need.
http://wiki.garrysmod.com/?title=NPC