RoT2_PRC8/_module/nss/emote_falldown.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

21 lines
554 B
Plaintext

//Trinity Emote System, by Tab
void main()
{
object oPC = GetPCSpeaker();
object user = GetLastUsedBy();
object oTarget;
oTarget = oPC;
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SLEEP), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SLEEP), GetLocation(oTarget));
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 1.0f, 45.0f));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_REST,user));
}