RBX.lua.RocketPropulsion (Object): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
mNo edit summary
>Anaminus
mNo edit summary
(No difference)

Revision as of 01:43, 3 January 2009


Preliminary:This item is under development and is likely to change. Use only for experimental work.

The RocketPropulsion object is used to apply force to a Part or other object in a similiar manner as a rocket (ie. towards a given part, with given thrust and torque).

Functions

In addition to the Global functions, RocketPropulsion incorporates the following:

Properties

In addition to the Global properties, the RocketPropulsion also has these:

Events

In addition to the Global events, the RocketPropulsion also has these:


Example Script

Insert this script into a small, unanchored part, and change the name in the script:

local rocket = script.Parent

local rp = Instance.new("RocketPropulsion")
rp.Parent = rocket
rp.Target = game.Players.YourNameHere.Character.Torso
rp:Fire()

See Also

Blog post