ReachedTarget (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus content |
>Tenal No edit summary |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Event|name=ReachedTarget | {| | ||
|arguments= | |<onlyinclude>{{Event|name = ReachedTarget | ||
|description= Fired when the Rocket comes within [[ | |arguments = | ||
|object= | |description = Fired when the Rocket comes within [[TargetRadius]] of the [[Target]]. This is used to make the rocket work, such as make an explosion when it flies near the Target. | ||
|object = RocketPropulsion | |||
|}}</onlyinclude> | |||
|} | |||
{{Example|<pre> | |||
game.Workspace.Part.RocketPropulsion.ReachedTarget:connect(function() | |||
print("Reached target") | |||
end) | |||
</pre>}} | |||
[[Category:Events]] |
Latest revision as of 03:41, 7 February 2012
|
Example
game.Workspace.Part.RocketPropulsion.ReachedTarget:connect(function() print("Reached target") end)