Advertisement
Guest User

Untitled

a guest
Jan 6th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (mouseJoint != null)
  2.         {
  3.             if (Std.is(_owner.attacker,Player))
  4.             {
  5.                 trace("checkpoint 1");
  6.                 var ragdollPlayer:Player = cast(_owner.attacker, Player);
  7.                
  8.                 var chainsaw_muzzle:Bone = ragdollPlayer.spine.skeleton.findBone("muzzle");
  9.                 bone_src.x = chainsaw_muzzle.worldX;
  10.                 bone_src.y = chainsaw_muzzle.worldY;   
  11.                 trace("checkpoint 2");
  12.                 mouseJoint.anchor1 = new Vec2(bone_src.x, bone_src.y);
  13.                 trace("checkpoint 3");
  14.                 uTorso.body.allowRotation = false;
  15.                 head.body.allowRotation = false;
  16.                
  17.                 if (mouseJoint.space != null)
  18.                 {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement