whichModel .collision.setCollisionCallback( #handlerName, scriptObjectName )
|
If collision.enabled is set to TRUE (1) , this command registers the Lingo script instance to receive an event when a collision occurs. If collision.enabled is set to FALSE (0) , no event occurs. What happens when a collision occurs depends on the value assigned to the resolve property. You can override this value by using the collisionData.resolveA() or collisionData.resolveB() commands. The collisionData object will be the second argument passed to #handlerName in the specified script object scriptObjectName . |
Nothing |