BGE object.life - gives you the life countdown for temporary objects.
authorDalai Felinto <dfelinto@gmail.com>
Mon, 11 Oct 2010 10:47:20 +0000 (10:47 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 11 Oct 2010 10:47:20 +0000 (10:47 +0000)
commit4814ffa07bbc8b55c60e540e7db70a18b2f3e992
treeac8896389acc6c7ee85045f16f858ed04edd5f4a
parente444c777145ccf297bc00f8e4690b78ed4ea85c9
BGE object.life - gives you the life countdown for temporary objects.
Whenever using AddObject actuator, this feature gives you control over morbid events (a.k.a. trigger events before the object ends).

Demo file here:
http://blenderecia.orgfree.com/blender/tmp/cube_life.blend

Feature implemented as part of the BGE development workshop in BlenderPRO 2010 - Fortaleza, Brazil
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_GameObject.h
source/gameengine/Ketsji/KX_Scene.cpp