
localScale
- gets/sets the object's local scale
Type:
- float number

Sample Code
################## get the object's local scale
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get local scale
scale_local = obj.localScale
Sample Code
################## set the object's local scale
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# set local scale
obj.localScale = 1.5