View difference between Paste ID: PF0xkXgV and t0H6PPfd
SHOW: | | - or go back to the newest paste.
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-
				{
18+
				{