- Home /
Unchild object by pushing a key
I'm making a game like trails, where your guy is a ragdoll, and I'm trying to make it so when you press F, it unchilds your guy from his bike, so he can fall out. Can someone help me with this?
Comment
Answer by fafase · Jul 29, 2012 at 08:16 PM
if(Input.GetKeyDown(KeyCode.F))transform.parent = null;
add this to the guy. I guess he is childed to the bike.
Your answer
Follow this Question
Related Questions
Trials ragdoll/bail effect 1 Answer
Increasing force script, physics and a special 2 wheel Bike setting 0 Answers
Ragdoll script vs Extra ragdoll model 0 Answers
Fall Death 1 Answer
Ragdoll elongates on Bike 0 Answers