21 lines
554 B
Plaintext
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));
|
||
|
}
|
||
|
|