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
 
[WarningTextObject]
Graphic = WarningTextObjectGraphic
Position = (0, 100, 0)
LifeTime = 1~10

See also

en/examples/objects/kill_parent_object_when_children_die.txt · Last modified: 2024/06/13 07:34 (5 months ago) by iarwain