MOSRotating:GibThis

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
(dupe)
m (updating function page)
Line 1: Line 1:
{{LuaFunction
{{LuaFunction
-
|function_name       = Actor:GibThis
+
|function_name =GibThis
-
|arguments           =  
+
|arguments =* The impulse (kg * m/s) of the impact causing the gibbing to happen. blast impulse which will push the gibs away from the center.
-
|returns             = [[nil]]
+
* A pointer to an MO which the gibs shuold not be colliding with!
-
|description         = Instantly Kills and Gibs the Actor
+
|returns =None.
-
|codedesc             = Gibs all actors in play.
+
|description =
-
|code                 = <code lua n>
+
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>
for actor in MovableMan.Actors do actor:GibThis() end </code>
-
|output             = [[nil]] to the console, but gibs all actors.
+
|output = [[nil]] to the console, but gibs all actors.
-
|}}
+
}}

Revision as of 00:09, 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
DescriptionGibs all actors in play.
Code
  1. for actor in MovableMan.Actors do actor:GibThis() end
Outputnil to the console, but gibs all actors.
Personal tools