User Tools

Site Tools


en:examples:objects:kill_parent_object_when_children_die

Having a Parent Object die after all children have died

This example shows children with a random lifetime, and the parent dying only after all children have expired.

Config

[WarningObject]
Position = (0, 0, -0.2)
ChildList = FlashingTopObject # IconObject # WarningTextObject 
LifeTime = child

[FlashingTopObject]
Graphic = FlashingTopGraphic
Position = (0, 0, 0)
LifeTime = 1~10
 
[IconObject]
Graphic = IconObjectGraphic
Position = (0, 50, 0)
LifeTime = 1~10
 
[TiltWarningTopLeftObject]
Graphic = WarningTextObjectGraphic
Position = (0, 100, 0)
LifeTime = 1~10

See also

en/examples/objects/kill_parent_object_when_children_die.txt · Last modified: 2020/08/31 05:37 (14 months ago) by sausage