{Scene.my.motor} help
4 posts • Page 1 of 1
{Scene.my.motor} help
i am using a lazer on collision with a group to make a hinge use a motor and it dosent work i have this in my script:
On Lazer Hit
MotorSpeed
can you tell me what i have done wrong?
On Lazer Hit
- Code: Select all
(e)=>{Scene.my.motor = 15.0}
MotorSpeed
- Code: Select all
{Scene.my.motor}
can you tell me what i have done wrong?
- Trurascal
- Posts: 2
- Joined: Sat Mar 13, 2010 8:42 pm
Re: {Scene.my.motor} help
probably whats happening is that your motor cant find scene.my.motor when scene starts because it doesent exist yet use {speed = 1; speed = scene.my.motor; speed } in motorspeed instead
- Mr_Stabby
- Posts: 155
- Joined: Wed Dec 16, 2009 12:16 am
Re: {Scene.my.motor} help
Open the console (F11) and type in scene.my.motor := 0.0 (or whatever value you want the variable to be). Then do everything as you described here. Does it work now? Or did you already do this first step with the console?
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests