ReachedTarget (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Example added
>Tenal
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|arguments =
|arguments =
|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.
|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]]
|object = RocketPropulsion
|}}</onlyinclude>
|}}</onlyinclude>
|}
|}
{{Example|<pre>
{{Example|<pre>
game.Workspace.Part.RocketPropulsion:connect(function()
game.Workspace.Part.RocketPropulsion.ReachedTarget:connect(function()
   print("Reached target")
   print("Reached target")
end)
end)
</pre>}}
</pre>}}
[[Category:Events]]

Latest revision as of 03:41, 7 February 2012

ReachedTarget ( )
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.
Member of: RocketPropulsion
Example
game.Workspace.Part.RocketPropulsion.ReachedTarget:connect(function()
  print("Reached target")
end)