VERGELua API

physics

Physics environments, objects, warp/double-tap.

physics

physics.CreateEnvironment():PhysicsEnvironment

Create a new physics environment.

physics.DestroyEnvironment(env:PhysicsEnvironment)

Destroy a physics environment.

physics.DefaultEnvironment():PhysicsEnvironment

Return the game's active physics environment.

physics.BBoxToCollisionModel(mins:Vector3, maxs:Vector3):PhysicsCollisionModel

Build a collision model from a bounding box.

physics.ParseModelByName(name:string):PhysicsSolid, PhysicsCollisionModel

Load a model's solid and collision model by name.

physics.DefaultObjectParameters():PhysicsObjectParameters

Return a default set of object parameters.

warp

warp.GetChargedTicks():number

Return the number of tick-shift ticks currently banked.

warp.IsWarping():boolean

Return whether the client is warping this shift.

warp.CanWarp():boolean

Return whether a warp can start right now.

warp.CanDoubleTap(weapon:Entity):boolean

Return whether the weapon can doubletap in a single packet.

warp.TriggerWarp()

Trigger a warp on the next command.

warp.TriggerDoubleTap()

Trigger a doubletap on the next command.

warp.TriggerCharge()

Trigger tick-shift recharge on the next command.