I’ve got this script, but I’m having problems with where the value of the property is inserted.
import GameLogic as gl
o = gl.getcurrentController().getOwner()
I’ve got this script, but I’m having problems with where the value of the property is inserted.
import GameLogic as gl
o = gl.getcurrentController().getOwner()
Would it go in the brakcets or something? If so which ones?
the c in ‘current’ needs to be capitalized. then it would be o.prop=val.
Ah! Thankyou! =)
Um, what exactly is that val? My property name is “pot” (as in a jar). Would it be possible for somebody to post an updated script where my property is “pot” and the value is “0”?
import GameLogic as gl
own=gl.getCurrentController().getOwner()
own.pot=0 #I assume that ‘pot’ is an int or a float
that should put your pot property with a value of 0