• SNPC panicing?
    9 replies, posted
Is it possible to make an SNPC panic and run from the player if the player is to kill a large amount of the SNPC's allies in a certain amount of time? Also, is it possible to set the likelihood of when the SNPC will cower if a certain number of his allies are killed?
[url]http://developer.valvesoftware.com/wiki/Ai_sound[/url]
No I meant with lua scripting.
That's exactly what he gave you. If it's an entity then you can spawn it. This is not reserved to mappers.
But SNPCS can't hear things.
:colbert: Read the article? [editline]06:58PM[/editline] [quote]This can be used to cause reactions in nearby NPCs.[/quote]
Ah, forget it edit: Oh, sorry. I didn't know you guys misread it.
No you are right we all read you wrong. Since they are entirely scripted in lua youwill have to script a panic behaviour before being able to use it. [editline]08:55PM[/editline] [QUOTE=Sergeant Stacker;22164743]Is it possible to make an SNPC panic and run from the player if the player is to kill a large amount of the SNPC's allies in a certain amount of time? Also, is it possible to set the likelihood of when the SNPC will cower if a certain number of his allies are killed?[/QUOTE] All of that is possible yes, but will have to be made from the ground up.
You need to set a radius, a looped timer, and check how many SNPC's that are the same type as the one the radius is set around, have been killed by a player, and then run an animation.
Sounds pretty difficult, but would be pretty cool nonetheless. Thanks for the help so far =)
Sorry, you need to Log In to post a reply to this thread.