User Tools

Site Tools


en:examples:objects:kill_parent_object_when_children_die

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:examples:objects:kill_parent_object_when_children_die [2020/06/09 03:30 (2 months ago)] (current)
sausage created
Line 1: Line 1:
 +====== 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 =====
 +
 +<​code=ini>​
 +[WarningObject]
 +Position = (0, 0, -0.2)
 +ChildList = FlashingTopObject # IconObject # WarningTextObject ​
 +LifeTime = child
 +
 +</​code>​
 +
 +<​code=ini>​
 +[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
 +</​code>​
 +
 +
 +
 +===== See also =====
 +[[en:​tutorials:​lifetime|Object Lifetime Tutorial]]
  
en/examples/objects/kill_parent_object_when_children_die.txt ยท Last modified: 2020/06/09 03:30 (2 months ago) by sausage