Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/rh_pillar1.nss
Normal file
21
_module/nss/rh_pillar1.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
//Put this OnUsed
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
object oTarget = GetObjectByTag("RH_DOORONE");
|
||||
|
||||
SetLocked(oTarget, FALSE);
|
||||
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||||
int nActive = GetLocalInt (OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE");
|
||||
// * Play Appropriate Animation
|
||||
if (!nActive)
|
||||
{
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
}
|
||||
else
|
||||
{
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
}
|
||||
// * Store New State
|
||||
SetLocalInt(OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE",!nActive);
|
||||
}
|
Reference in New Issue
Block a user