PWE_PRC8/_module/nss/j_ai_onrest.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

16 lines
503 B
Plaintext

// On Rested -Working-
// This will play the sitting animation for 6 seconds, just something for resting.
// Also, walks waypoints (as resting would stop this) :-) and signals event (if so be)
// Feel free to edit.
#include "j_inc_spawnin"
void main()
{
ClearAllActions();
ActionPlayAnimation(ANIMATION_LOOPING_SIT_CROSS, 1.0, 6.0);
DelayCommand(6.0, WalkWayPoints());
if(GetSpawnInCondition(NW_FLAG_RESTED_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1009));
}
}