Hi all,
Just like the title suggests, what is the Python syntax for using message sensors in the GE? I’ve got a segment of code below, am I on the right track?
def GUN2(cn):
ow = cn.owner
sce = bge.logic.getCurrentScene()
obList = sce.objects
RESET = cn.sensors["RESET"] # <<<<<<<<<<
if RESET.messSensor.subject == "RESET": # <<<<<<<<<<<<<
ow["const"].end()
ow.endObject()
obList['SHIP2'].endObject()
elif endCheck:
ow["const"].endTick()
Cheers
Paul