I'm trying to learn scripting, but it's difficult. so I am asking again if someone can help me put together a script
I want to make my commoner NPCs run away from Hostile NPCs. I want them to scream, and I want them to shout "Don't kill me!"
Here's all the pieces I think I need, I just can't quite put them together!
- GetLastPerceived
- GetIsEnemy
- ActionDoCommand( SetCommandable( TRUE));
- ClearAllActions( TRUE);
- ActionDoCommand( PlayVoiceChat( VOICE_CHAT_PAIN2));
- ActionSpeakString ("Don't kill me!)~~~~~~
- ActionMoveAwayFromObject(object oFleeFrom, int bRun=FALSE, float fMoveAwayRange=40.0f)





Retour en haut






