MOSRotating:GibThis

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
m (updating function page)
m (updating function page)
 
Line 6: Line 6:
|description =
|description =
Gibs this, effectively destroying it and creating multiple gibs or pieces in its place.
Gibs this, effectively destroying it and creating multiple gibs or pieces in its place.
-
|codedesc = Gibs all actors in play.
+
  }}
-
|code = <code lua n>
+
-
for actor in MovableMan.Actors do actor:GibThis() end </code>
+
-
|output = [[nil]] to the console, but gibs all actors.
+
-
}}
+

Latest revision as of 00:54, 28 June 2012

Function
SyntaxGibThis( * The impulse (kg * m/s) of the impact causing the gibbing to happen. blast impulse which will push the gibs away from the center.
  • A pointer to an MO which the gibs shuold not be colliding with! )
Description:
Gibs this, effectively destroying it and creating multiple gibs or pieces in its place.
ReturnsNone.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools