Functions/DarkRP/Shared/ValidatedPhysicsInit
Jump to navigation
Jump to search
Function | |
Function name | DarkRP.ValidatedPhysicsInit(entity ent, number kind, string hint) |
Description: | |
Initialise the physics of an entity, throw a discriptive error when this fails. | |
Returns: | boolean success |
Part of Library: | DarkRP |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/ValidatedPhysicsInit]DarkRP.ValidatedPhysicsInit[/url][/b] |
Function parameters[edit]
- ent (entity)
- kind (number) (optional)
- hint (string) (optional)
Entity for which to create the PhysObj.
The SOLID_ enum type. By default this is SOLID_VPHYSICS
Optional hint for the error message.
Function return values[edit]
- success (boolean)
Whether creating the PhysObj succeeded