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