rendered paste bodyimport GameLogic as g
c = g.getCurrentController()
o = c.getOwner()
m = o.getMesh()
s = g.getCurrentScene()
class particle:
def setDimensions(self,width=0.0,height=0.0):
1
def setLife(self,life=0.0,lifeVary=0.0,lifeVarySeed=0.0):
1
def setChildren(self,childNum=0,childLife=0):
1
def setVelocity(self,speed=0,veloVary=0,veloVarySeed=0):
1
def setColor(self,startCol=[1.0,1.0,1.0],endCol=[1.0,1.0,1.0]):
1
def setForce(self,force=[0,0,0]):
1
class emitter:
def __init__(self,act):
self.act = ""
def go(self,act = 0):
if act:
g.addActiveActuator(c.getActuator(act),1)
self.act = act
else:
g.addActiveActuator(c.getActuator(self.act),1)
def setMethod(self,method='face'):
print self.act