18 lines
437 B
Plaintext
18 lines
437 B
Plaintext
void main()
|
|
{
|
|
|
|
object oSelf = OBJECT_SELF;
|
|
object oPC = GetLastUsedBy();
|
|
|
|
DelayCommand(0.0f, AssignCommand(oPC, ActionStartConversation(oSelf, "iditemconv", TRUE)));
|
|
|
|
int nActive = GetLocalInt (oSelf,"X2_L_PLC_ACTIVATED_STATE");
|
|
// * Play Appropriate Animation
|
|
if (!nActive)
|
|
{
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
DelayCommand(5.0, ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
|
|
}
|
|
|
|
}
|