Files
HeroesStone_PRC8/_module/nss/ac_doingwork.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

25 lines
658 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Goes on creature's OnHeartbeat. Fires when not fighting or talking.
void main()
{
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN);
if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return;
ActionMoveToObject(GetObjectByTag("wp_kitchen1"));
ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0f, 8.0f);
ActionMoveToObject(GetObjectByTag("wp_kitchen2"));
ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0f, 5.0f);
}