How To Make Homing Objects.

From Legacy Roblox Wiki
Revision as of 17:58, 12 May 2008 by >Dreaddraco2 (Thought people might occasionaly want to know what rocketpropulsion can be used for, or how to make homing objects.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

How To Make Homing Objects

Introduction

How do i make homing objexts? You may ask. Well heres the simplest way of making homing objects!

Section One: Rocket Propulsion And The Part

Step one is to create the RocketPropulsion And The Part object. Or alternatively, you could make a missle with rocketpropulsion without a target, and put it in Lighting, Then Clone The Rocket.

Section Two: Defining the target

This Requires a script. E.g. "game.Workspace.Part.RocketPropulsion.Target = game.Workspace.dreaddraco2.Head

Section Three: Firing The Part

This also requires a script, this will set off your part (If Unanchored) after The Target: "game.Workspace.Part.RocketPropulsion:fire()"

Section Four: Additional Features

CartoonCharacter Now when you made the RocketPropulsion you might have thougt something like "CartoonCharacter???", "WHY IS THERE A CARTOONCHARACTER PROPETY???" Or mayber "WHAT COULD IT MEAN?". Well this sets weather your part should head Directly towards it, ignoring the point its facing, or weather it faces straight at you. 1 Would be always facing at you. 0.5 Would be sort of facing you. 0 would be No effort to facing you.

abort()

This, as its name suggests, aborts the RocketPropulsions mission to get to you, You could us this if your objects need fuel, and when the fuel is 0 they drop out of the sky.