From DarkRP
Jump to navigation Jump to search
Function name DarkRP.ValidatedPhysicsInit(entity ent, number kind, string hint)
Initialise the physics of an entity, throw a discriptive error when this fails.
Returns: boolean success
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=]DarkRP.ValidatedPhysicsInit[/url][/b]

Function parameters[edit]

  1. ent (entity)
  2. Entity for which to create the PhysObj.

  3. kind (number) (optional)
  4. The SOLID_ enum type. By default this is SOLID_VPHYSICS

  5. hint (string) (optional)
  6. Optional hint for the error message.

Function return values[edit]

  1. success (boolean)
  2. Whether creating the PhysObj succeeded