4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
716 B

scriptName DefaultRagdollAttachPointSCRIPT extends objectReference
objectReference property RHand auto
objectReference property LHand auto
objectReference property RFoot auto
objectReference property LFoot auto
EVENT onLoad()
forceAddRagdollToWorld()
if RHand
game.addHavokBallAndSocketConstraint(self,"NPC R Hand [RHnd]",RHand,"AttachDummy",0,0,16)
endif
if LHand
game.addHavokBallAndSocketConstraint(self,"NPC L Hand [LHnd]",LHand,"AttachDummy",0,0,16)
endif
if RFoot
game.addHavokBallAndSocketConstraint(self,"NPC R Foot [Rft ]",RFoot,"AttachDummy")
endif
if LFoot
game.addHavokBallAndSocketConstraint(self,"NPC L Foot [Lft ]",LFoot,"AttachDummy")
endif
applyHavokImpulse(0,0,1,10)
endEVENT