Varying With Key?
-
Can a thruster be set to start at 1500 and with key("up") change to 500 and -500 from key("down")
-
@unknownuser said:
Can a thruster be set to start at 1500 and with key("up") change to 500 and -500 from key("down")
probably. im not sure how. some kinda long code i wont understand
-
Nevermind, i found it anyway.
if key("up")==0 && key("down")==0 then setVar("thrust",1500);elsif key("up")==1 then setVar("thrust",500);elsif key ("down")==1 then setVar("thrust",-500);end;
-
my switch code, which I posted back in the toggle script discussion:
if frame==1 then setVar("1",0);elsif key("up")==1 then getSetVar("1",1);elsif key("down")==getVar("1") then getSetVar("1",0);end;
...just posted it here because it might be useful, isn't really what you're looking for though.
Advertisement