Functions

Animation_GetBoolean(componentId, name)


Animation_GetNumber(componentId, name)


Animation_GetString(componentId, name)


Animation_SetAnimationGraph(componentId, fileName)


Animation_SetBoolean(componentId, name, value)


Animation_SetNumber(componentId, name, value)


Animation_SetString(componentId, name, value)


Automator_DestroyGeneratedChildren()


Automator_Execute(entityId) Executes any automators on the specified entity.


Automator_ExecuteOverlapping() Executes the automators for any that are overlapping the region specified by self.


Automator_GetOverlappingEntities() Gets a list of the entities with automators that overlap the region specified for the automator on self.


Automator_GetRegion(entityId)


Automator_SetRegion(region)


Automator_SetRegions(regions)


Automator_SpawnBlueprint(fileName, origin, angles)


Bone_GetCoords(componentId)


Bone_GetName(componentId)


Bone_GetPosition(componentId)


Bone_GetRotation(componentId)


Bone_SetCoords(componentId, coords)


Bone_SetName(componentId, boneName)


Bone_SetPosition(componentId, position)


Bone_SetRotation(componentId, rotation)


Camera_GetFov(componentId) Field of view is returned in radians.


Camera_SetFov(componentId, fov) Field of view is provided in radians.


Collision_AddForce(componentId, force)


Collision_AddForceAtLocalPosition(componentId, force, position)


Collision_AddForceAtPosition(componentId, force, position)


Collision_AddLocalForce(componentId, force)


Collision_AddLocalForceAtLocalPosition(componentId, force, position)


Collision_AddLocalForceAtPosition(componentId, force, position)


Collision_AddLocalTorque(componentId, torque)


Collision_AddTorque(componentId, torque)


Collision_GetAngularVelocity(componentId)


Collision_GetFilter(componentId)


Collision_GetGravity(componentId)


Collision_GetLinearVelocity(componentId)


Collision_GetLocalCenterOfMass(componentId)


Collision_GetModel(componentId)


Collision_GetPhysics(componentId)


Collision_SetFilter(componentId, filter)


Collision_SetGravity(componentId, physics)


Collision_SetModel(componentId, fileName)


Collision_SetPhysics(componentId, physics)


ComponentId_ToString(componentId)


Component_GetIsValid(componentId) Returns true if an component id refers to a valid component.


Component_GetNext(componentId)


Component_GetType(componentId)


Controller_AddForce(componentId, force)


Controller_GetFloor(componentId)


Controller_GetHeight(componentId)


Controller_GetRadius(componentId)


Controller_GetVelocity(componentId)


Controller_Move(componentId, delta, deltaTime, steppingEnabled)


Controller_SetHeight(componentId, height)


Controller_SetRadius(componentId, radius)


Controller_SetVelocity(componentId, velocity)


Debug_DrawLine(startPoint, endPoint, color) Draws a line in the debug view.


Debug_DrawText(position, text) Draws text in the debug view.


Decal_GetExtents(componentId)


Decal_GetMaterial(componentId)


Decal_SetExtents(componentId, extents)


Decal_SetMaterial(componentId, fileName)


EntityId_ToString(entityId)


Entity_AddForce(entityId, force)


Entity_AddForceAtLocalPosition(entityId, force, position)


Entity_AddForceAtPosition(entityId, force, position)


Entity_AddLocalForce(entityId, force)


Entity_AddLocalForceAtLocalPosition(entityId, force, position)


Entity_AddLocalForceAtPosition(entityId, force, position)


Entity_AddLocalTorque(entityId, torque)


Entity_AddTag(entityId, tag)


Entity_AddTorque(entityId, torque)


Entity_GetAngles(entityId)


Entity_GetAttachPoint(entityId)


Entity_GetChild(entityId)


Entity_GetControllingPlayer(entityId)


Entity_GetCoords(entityId)


Entity_GetHasTag(entityId, tag)


Entity_GetIsValid(entityId)


Entity_GetLocalAngles(entityId)


Entity_GetLocalBoundingBox(entityId)


Entity_GetLocalCoords(entityId)


Entity_GetLocalPosition(entityId) Returns the position of the entity relative to its parent.


Entity_GetNumTags(entityId)


Entity_GetParent(entityId)


Entity_GetPosition(entityId) Returns the position of the entity relative to the world.


Entity_GetSibling(entityId)


Entity_GetTag(entityId, i)


Entity_RemoveAllTags(entityId)


Entity_RemoveTag(entityId, tag)


Hud_BeginHorizontal(location)


Hud_BeginStack(location)


Hud_BeginVertical(location)


Hud_End()


Hud_HighlightEntity(entityId, color, applyToChildren) Adds a glowing highlight effect on the entity.


Hud_Image(location, fileName, scale)


Hud_Text(location, text, font)


Joint_SetAttachEntity(componentId, entityId)


Label_GetText(componentId)


Label_GetVerticalOffset(componentId)


Label_SetText(componentId, setText)


Label_SetVerticalOffset(componentId, verticalOffset)


Light_GetAtmosphere(componentId)


Light_GetCastsShadows(componentId)


Light_GetInnerCone(componentId)


Light_GetIntensity(componentId)


Light_GetMaxDistance(componentId)


Light_GetOuterCone(componentId)


Light_GetType(componentId)


Light_SetAtmosphere(componentId, atmosphericDensity)


Light_SetCastsShadows(componentId, castsShadows)


Light_SetColor(componentId, color)


Light_SetInnerCone(componentId, innerCone)


Light_SetIntensity(componentId, intensity)


Light_SetMaxDistance(componentId, maxDistance)


Light_SetOuterCone(componentId, outerCone)


Light_SetType(componentId, type)


Model_GetIsVisible(componentId)


Model_GetModel(componentId)


Model_GetSkin(componentId)


Model_SetIsVisible(componentId, setIsVisible)


Model_SetModel(componentId, fileName)


Model_SetSkin(componentId, skinName)


Particles_GetEffect(componentId)


Particles_SetEffect(componentId, fileName)


Player_GetData(playerId, key)


Player_SetControlledEntity(playerId, entityId)


Player_SetData(playerId, key, value)


Script_GetABBoxValue(componentId, fieldIndex, arrayIndex)


Script_GetAnglesValue(componentId, fieldIndex, arrayIndex)


Script_GetBooleanValue(componentId, fieldIndex, arrayIndex)


Script_GetColorValue(componentId, fieldIndex, arrayIndex)


Script_GetEntityIdValue(componentId, fieldIndex, arrayIndex)


Script_GetFieldIndex(componentId, name)


Script_GetFieldName(componentId, fieldIndex)


Script_GetFieldType(componentId, fieldIndex)


Script_GetNumberValue(componentId, fieldIndex, arrayIndex)


Script_GetScript(componentId)


Script_GetVec3Value(componentId, fieldIndex, arrayIndex)


Script_SetABBoxValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetAnglesValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetBooleanValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetColorValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetEntityIdValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetNumberValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetScript(componentId, fileName)


Script_SetStringValue(componentId, fieldIndex, setVal, arrayIndex)


Script_SetVec3Value(componentId, fieldIndex, setVal, arrayIndex)


Self_AddAnimationComponent()


Self_AddBoneComponent()


Self_AddCameraComponent()


Self_AddCollisionComponent()


Self_AddControllerComponent()


Self_AddDecalComponent()


Self_AddJointComponent()


Self_AddLabelComponent()


Self_AddLightComponent()


Self_AddModelComponent()


Self_AddParticlesComponent()


Self_AddScriptComponent()


Self_AddSoundComponent()


Self_AddTag(tag)


Self_AddTimerComponent()


Self_AddTriggerComponent()


Self_GetAngles()


Self_GetAttachPoint()


Self_GetBoneComponent(name)


Self_GetBoneCoords(boneName)


Self_GetChild()


Self_GetChildren()


Self_GetComponent(typeName)


Self_GetComponents(typeName)


Self_GetCoords()


Self_GetFirstComponent()


Self_GetHasTag(tag)


Self_GetId()


Self_GetLocalAngles()


Self_GetLocalCoords()


Self_GetLocalPosition()


Self_GetName()


Self_GetNumTags()


Self_GetParent()


Self_GetPosition()


Self_GetScriptComponent(name)


Self_GetSibling()


Self_GetSoundComponent(name)


Self_GetTag(i)


Self_RemoveAllTags()


Self_RemoveComponent(componentId)


Self_RemoveTag(tag)


Self_SetAngles(angles)


Self_SetAttachPoint(attachBone)


Self_SetCoords(objectToWorldCoords)


Self_SetLocalAngles(angles)


Self_SetLocalCoords(coords)


Self_SetLocalPosition(position)


Self_SetParent(parentId)


Self_SetPosition(position)


Sound_GetSound(componentId)


Sound_GetType(componentId)


Sound_GetVolume(componentId)


Sound_SetSound(componentId, fileName)


Sound_SetType(componentId, type)


Sound_SetVolume(componentId, volume)


Timer_GetId(componentId)


Timer_GetInterval(componentId)


Timer_SetId(componentId, id)


Timer_SetInterval(componentId, interval)


Trigger_GetBoxHalfExtents(componentId)


Trigger_GetEffect(componentId)


Trigger_GetFilter(componentId)


Trigger_GetForceDirection(componentId)


Trigger_GetForceStrength(componentId)


Trigger_GetShape(componentId)


Trigger_GetSphereRadius(componentId)


Trigger_SetBoxHalfExtents(componentId, halfExtents)


Trigger_SetEffect(componentId, triggerEffect)


Trigger_SetFilter(componentId, filterPreset)


Trigger_SetForceDirection(componentId, direction)


Trigger_SetForceStrength(componentId, strength)


Trigger_SetShape(componentId, shape)


Trigger_SetSphereRadius(componentId, radius)


World_CreateEntity()


World_DestroyEntity(entityId)


World_EndGame()


World_GetGravity()


World_GetName()


World_GetTime()


World_Load(fileName)


World_PlayParticles(fileName, origin, parentId)


World_PlaySound(fileName, origin, type, radius, volume, parentId)


World_Raycast(origin, direction, distance, filter) Direction should be a normalized vector and distance is the distance along that vector.


World_SetGravity(gravity)


World_SpawnBlueprint(fileName, origin, angles, parentId)


World_TestBoxOverlap(coords, halfExtents, filter) Finds the entities with Collision components that are within a box shape.


World_TestRayOverlap(origin, direction, distance, filter) Finds all of the intersections with a ray, ordered from closest to farthest. The intersections are returnd as a table of WorldHit objects. Direction should be a normalized vector and distance is the distance along that vector.


World_TestSphereOverlap(center, radius, filter)