PoA_PRC8/_module/nss/startidconv.nss

18 lines
437 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
2023-08-01 20:16:07 -04:00
object oSelf = OBJECT_SELF;
2022-10-07 14:20:31 -04:00
object oPC = GetLastUsedBy();
2023-08-01 20:16:07 -04:00
DelayCommand(0.0f, AssignCommand(oPC, ActionStartConversation(oSelf, "iditemconv", TRUE)));
2022-10-07 14:20:31 -04:00
2023-08-01 20:16:07 -04:00
int nActive = GetLocalInt (oSelf,"X2_L_PLC_ACTIVATED_STATE");
2022-10-07 14:20:31 -04:00
// * Play Appropriate Animation
if (!nActive)
{
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
DelayCommand(5.0, ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
}
}