
life
- gets the number of frames the added game object has left to live.
Return Type:
- float number
Note:
- None means it will exist forever.

Sample Code
################## get the amount of time before the object dies
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get the object's time left
amount = obj.life