Skip to content

Instantly share code, notes, and snippets.

@Azaezel
Created February 2, 2020 20:56
Show Gist options
  • Save Azaezel/d6aef3c3081fad22c3a13ba5e69dcb71 to your computer and use it in GitHub Desktop.
Save Azaezel/d6aef3c3081fad22c3a13ba5e69dcb71 to your computer and use it in GitHub Desktop.
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