Difference between "Parent" and "Root"

Started by vgma2, April 06, 2014, 01:14:30 AM

Previous topic - Next topic

vgma2

I'm trying to code a few triggers for a helper that was spawned by a helper.
What is the difference between Parent and Root?

I have a bit of an idea, but I want to make sure.
From my guess, Parent refers to the instance that spawned it, while Root refers to the main player.
So let's say player spawns helper1 which then spawns helper2.
If I used Parent for helper2, then helper2 will read the data from helper1.
If I used Root however, then helper2 will read the data from the player instead.

Is my understanding of this correct?

Cobra Caddie


vgma2

I see, thanks.
Also, is there a reference for these somewhere in the Mugen docs that lists and explains them?  I can't seem to find it.

Cobra Caddie

cns.html in the docs, trigger redirection