MOSRotating:GibThis

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
m (updating function page)
m (Reverted edits by Beautifybot (talk) to last revision by Daman)
Line 1: Line 1:
{{LuaFunction
{{LuaFunction
-
|function_name =GibThis
+
|function_name       = Actor:GibThis
-
|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.
+
|arguments           =  
-
* A pointer to an MO which the gibs shuold not be colliding with!
+
|returns             = [[nil]]
-
|returns =None.
+
|description         = Instantly Kills and Gibs the Actor
-
|description =
+
|codedesc             = Gibs all actors in play.
-
Gibs this, effectively destroying it and creating multiple gibs or pieces in its place.
+
|code                 = <code lua n>
-
|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:23, 28 June 2012

Function
SyntaxActor:GibThis( )
Description:
Instantly Kills and Gibs the Actor
Returnsnil




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