RBX.lua.RocketPropulsion (Object): Difference between revisions
>N2KC No edit summary |
>SaladDog added <br> |
||
Line 4: | Line 4: | ||
== Functions: == | == Functions: == | ||
'''Fire()''' - Makes the rocket fly. | '''Fire()''' - Makes the rocket fly.<br> | ||
'''Abort()''' - Makes the rocket fall. | '''Abort()''' - Makes the rocket fall.<br> | ||
== Properties: == | == Properties: == | ||
'''Target''' - Part that the rocket will fly towards. | '''Target''' - Part that the rocket will fly towards.<br> | ||
'''MaxSpeed''' - How fast the rocket will fly. | '''MaxSpeed''' - How fast the rocket will fly.<br> | ||
'''CartoonFactor''' - In a nutshell, the tilt of the rocket as it flies. A value of 0 will make the rocket's nose point upwards. A value of 1 will make the rocket's nose point straight towards the Target. | '''CartoonFactor''' - In a nutshell, the tilt of the rocket as it flies. A value of 0 will make the rocket's nose point upwards. A value of 1 will make the rocket's nose point straight towards the Target.<br> | ||
'''TargetRadius''' - The radius of the Target before the ReachedTarget event is fired. | '''TargetRadius''' - The radius of the Target before the ReachedTarget event is fired.<br> | ||
'''MaxThrust''' - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne. | '''MaxThrust''' - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne.<br> | ||
'''MaxTorque''' - The amount of torque the rocket will use to rotate the rocket. | '''MaxTorque''' - The amount of torque the rocket will use to rotate the rocket.<br> |
Revision as of 18:21, 16 March 2008
RocketPropulsion is a little-known secret that is very helpful when creating pets, homing rockets, and any projectile that homes in on a Part.
Functions:
Fire() - Makes the rocket fly.
Abort() - Makes the rocket fall.
Properties:
Target - Part that the rocket will fly towards.
MaxSpeed - How fast the rocket will fly.
CartoonFactor - In a nutshell, the tilt of the rocket as it flies. A value of 0 will make the rocket's nose point upwards. A value of 1 will make the rocket's nose point straight towards the Target.
TargetRadius - The radius of the Target before the ReachedTarget event is fired.
MaxThrust - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne.
MaxTorque - The amount of torque the rocket will use to rotate the rocket.