Created
February 2, 2020 20:56
-
-
Save Azaezel/d6aef3c3081fad22c3a13ba5e69dcb71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MainGate::open(%this) | |
{ | |
%pos = getWords(%this.getSlotTransform(2),0,2); | |
ServerPlayExplosion(%pos, DoorScreetchExplosion5); | |
%this.playthread(0,"openSeq1"); | |
} | |
function MainGateData::onOpenSeq1(%this,%obj) | |
{ | |
%pos = getWords(%obj.getSlotTransform(3),0,2); | |
ServerPlayExplosion(%pos, BrickEXPBig); | |
%obj.playthread(0,"openSeq2"); | |
} | |
function MainGateData::onOpenSeq2(%this,%obj) | |
{ | |
%pos = getWords(%this.getSlotTransform(4),0,2); | |
ServerPlayExplosion(%pos, DoorScreetchExplosion4); | |
%obj.playthread(0,"openSeq3"); | |
} | |
function MainGateData::onOpenSeq3(%this,%obj) | |
{ | |
%pos = getWords(%obj.getSlotTransform(4),0,2); | |
ServerPlayExplosion(%pos, GrenadeExplosion); | |
%obj.setActiveCollision(1);//colX-2 | |
NavmeshUpdateAll(%obj,false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment