|
how can i disable a object when the object collides with another object and changes to the object that it collided with ie. object a collides with object b and changes to object b.
(comments are locked)
|
|
I think so, you must activate the object isTrigger: object : Transform; function OnTriggerEnter (other : Collider) { if(hit.object) { object.enabled = false; } } Hope this help ;D ask any questions were do i put this script to? player object or the other object?
Jun 09 '11 at 03:10 PM
smasgames
(1,1): BCE0044: expecting EOF, found 'object'.
Jun 09 '11 at 05:06 PM
smasgames
(comments are locked)
|
