var entity = CBaseEntity.CreateByName("phys_motor")!;
var ekv = new CEntityKeyValues();
entity.Spawn(ekv);| Declared by CPhysMotor · 9 | ||||
| addangaccel | float32 SetFloat | CPhysMotor::m_additionalAcceleration | ||
| attach1 | string SetString | CPhysMotor::m_nameAttach | ||
| attach2 | string SetString | CPhysMotor::m_nameAnchor | ||
| axis | position_vector SetVector | CMotorController::m_axis via m_motor | ||
| friction | float32 SetFloat | CPhysMotor::m_flMotorFriction | ||
| inertiafactor | float32 SetFloat | CMotorController::m_inertiaFactor via m_motor | ||
| speed | float32 SetFloat | CPhysMotor::m_flTargetSpeed | ||
| spindown | float32 SetFloat | CPhysMotor::m_spinDown | ||
| spinup | float32 SetFloat | CPhysMotor::m_spinUp | ||
| Inherited from base classes and components · 43 | ||||
| angleprocedural | float32 SetFloat | CBaseEntity | ||
| anglesprocedural | qangle SetVector | CBaseEntity | ||
| avelocity | qangle SetVector | CBaseEntity::m_vecAngVelocity | ||
| casterprocedural | ehandle SetString | CBaseEntity | ||
| damagefilter | string SetString | CBaseEntity::m_iszDamageFilterName | ||
| disablelowviolence | boolean SetBool | CBaseEntity::m_bDisableLowViolence | ||
| disablereceiveshadowsprocedural | int32 SetInt | CBaseEntity | ||
| disableshadowsprocedural | int32 SetInt | CBaseEntity | ||
| effects | uint32 SetInt | CBaseEntity::m_fEffects | ||
| globalname | string SetString | CBaseEntity::m_iGlobalname | ||
| gravity | float32 SetFloat | CBaseEntity::m_flGravityScale | ||
| health | int32 SetInt | CBaseEntity::m_iHealth | ||
| LagCompensate | boolean SetBool | CBaseEntity::m_bLagCompensate | ||
| local.angles | qangle SetVector | CGameSceneNode::m_angRotation via m_CBodyComponent → m_pSceneNode | ||
| local.origin | network_origin_cell_quantized_vector SetVector | CGameSceneNode::m_vecOrigin via m_CBodyComponent → m_pSceneNode | ||
| local.scalesprocedural | vector SetVector | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| ltime | float32 SetFloat | CBaseEntity::m_flLocalTime | ||
| max_health | int32 SetInt | CBaseEntity::m_iMaxHealth | ||
| modelprocedural | hmodel SetString | CBaseEntity | ||
| ModelScaleprocedural | float32 SetFloat | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| MoveType | uint8 SetInt | CBaseEntity::m_MoveType | ||
| nextthink | tick SetInt | CBaseEntity::m_nNextThinkTick | ||
| nodamageforcesprocedural | int32 SetInt | CBaseEntity | ||
| originprocedural | vector SetVector | CBaseEntity | ||
| owner | ehandle SetString | CBaseEntity::m_hOwnerEntity | ||
| ownernameprocedural | utlstring SetString | CBaseEntity | ||
| parentAttachmentName | utlstringtoken SetStringToken | CGameSceneNode::m_hierarchyAttachName via m_CBodyComponent → m_pSceneNode | ||
| parentnameprocedural | ehandle SetString | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| platform_type | uint8 SetInt | CBaseEntity::m_nPlatformType | ||
| positionInLocalSpaceprocedural | boolean SetBool | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| ResponseContext | string SetString | CBaseEntity::m_iszResponseContext | ||
| scaleprocedural | float32 SetFloat | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| scalesprocedural | vector SetVector | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| spawnflags | uint32 SetInt | CBaseEntity::m_spawnflags | ||
| subclass_id | utlstringtoken SetStringToken | CBaseEntity::m_nSubclassID | ||
| subclass_nameprocedural | string SetString | CBaseEntity | ||
| target | string SetString | CBaseEntity::m_target | ||
| TeamNum | int32 SetInt | CBaseEntity::m_iInitialTeamNum | ||
| teamnumber | uint8 SetInt | CBaseEntity::m_iTeamNum | ||
| useLocalOffsetprocedural | boolean SetBool | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| useParentRenderBoundsprocedural | boolean SetBool | CGameSceneNode via m_CBodyComponent → m_pSceneNode | ||
| velocity | network_quantized_vector SetVector | CBaseEntity::m_vecVelocity | ||
| vscripts | string SetString | CBaseEntity::m_iszPrivateVScripts | ||
| Declared by CPhysMotor · 8 | |||
| GetActualSpeed Get the current rotation speed (deg/s) of the attached object about the motor's axis. May differ from the motor's target speed. | no value → float retval | CPhysMotor | |
| SetFriction | float | CPhysMotor | |
| SetSpeed | float | CPhysMotor | |
| SetSpinDownTime Sets the time the motor takes to spin down to a lesser target speed when it's on. | float fSpinDownTime | CPhysMotor | |
| SetSpinUpTime Sets the time the motor takes to spin up to a greater target speed when it's on. | float fSpinUpTime | CPhysMotor | |
| SetSystemInertiaScale Sets the inertia scale on the motor, which affects the maximum amount of torque it can generate (this will also affect the actual time the motor takes to spin up or spin down). | float flInertiaScale | CPhysMotor | |
| TurnOff | no value | CPhysMotor | |
| TurnOn | no value | CPhysMotor | |
| Inherited from base classes and components · 83 | |||
| AddAttribute | string | CBaseEntity | |
| AddContext | string | CBaseEntity | |
| AddModifier | string | CBaseEntity | |
| AddOutput | string pParam | CBaseEntity | |
| ChangeSubclass | string | CBaseEntity | |
| ChangeTeam Set the entity team number | int iTeamNum | CBaseEntity | |
| ClassMatches Check the type of an entity. Includes base classes. | string entityType → bool retval | CBaseEntity | |
| ClassNameMatches Returns true if the entity's class matches the one given (no wildcard support) | string pClassName → bool retval | CBaseEntity | |
| ClearContext | no value | CBaseEntity | |
| ClearParent | no value | CBaseEntity | |
| DisableAutoSleeping | no value | CBaseEntity | |
| DisableDamageForces | no value | CBaseEntity | |
| DisablePlatform | no value | CBaseEntity | |
| DisableShadow | no value | CBaseEntity | |
| DispatchResponse | string | CBaseEntity | |
| EnableAutoSleeping | no value | CBaseEntity | |
| EnableDamageForces | no value | CBaseEntity | |
| EnablePlatform | no value | CBaseEntity | |
| EnableShadow | no value | CBaseEntity | |
| FindModelConfigEntity Returns the model config entity attached to this entity by the specified name | string pConfigEntityName → ehandle retval | CBaseEntity | |
| FireUser1 | no value | CBaseEntity | |
| FireUser2 | no value | CBaseEntity | |
| FireUser3 | no value | CBaseEntity | |
| FireUser4 | no value | CBaseEntity | |
| FollowEntity | string | CBaseEntity | |
| GetAbsAngles Get the world orientation of this entity. | no value → qangle retval | CBaseEntity | |
| GetAbsOrigin The entity origin (absolute). | no value → vec3_worldspace retval | CBaseEntity | |
| GetAbsScale Get the world scale of this entity. | no value → float retval | CBaseEntity | |
| GetAbsTransform The entity origin transform (absolute). | no value → transform_worldspace retval | CBaseEntity | |
| GetAllChildren Returns the children in hierarchy. | no value → array<ehandle> retval | CBaseEntity | |
| GetAttachmentAngle Return the Angle of the entity's attachment. | string pAttachment → qangle retval | CBaseEntity | |
| GetAttachmentForward Return the forward vector for the attachment | string pAttachment → vec3 retval | CBaseEntity | |
| GetAttachmentLeft Return the left vector for the attachment | string pAttachment → vec3 retval | CBaseEntity | |
| GetAttachmentOrigin Return the absolute position of the entity's attachment. | string pAttachment → vec3_worldspace retval | CBaseEntity | |
| GetAttachmentUp Return the up vector for the attachment | string pAttachment → vec3 retval | CBaseEntity | |
| GetClassName The entity class name | no value → string retval | CBaseEntity | |
| GetDebugString Get a debug string identifying the entity. Safe for null entities. This string cannot be used for looking up the entity. Should not be used for anything except logging. | no value → string retval | CBaseEntity | |
| GetEyePosition The entity eye position. | no value → vec3_worldspace retval | CBaseEntity | |
| GetForward The forward vector of the entity. | no value → vec3 retval | CBaseEntity | |
| GetGravityDirection The current gravity direction for the entity. | no value → vec3 retval | CBaseEntity | |
| GetLeft The left vector of the entity. | no value → vec3 retval | CBaseEntity | |
| GetLocalAngles Get the local orientation of this entity. | no value → qangle retval | CBaseEntity | |
| GetLocalOrigin The entity origin (local). Use when you have a parent. | no value → vec3 retval | CBaseEntity | |
| GetLocalScale Get the local scale of this entity. | no value → float retval | CBaseEntity | |
| GetLocalTransform The entity origin transform (local). Use when you have a parent. | no value → transform retval | CBaseEntity | |
| GetMoveParent Get the entity's move parent (may not be the top level movement entity). | no value → ehandle retval | CBaseEntity | |
| GetName Get the name of the entity. | no value → entity_name retval | CBaseEntity | |
| GetRootMoveParent Get the root move parent for the entity (traverses the hierarchy until it reaches the ancestor that controls the final transform). | no value → ehandle retval | CBaseEntity | |
| GetTeamNumber The entity team number | no value → int retval | CBaseEntity | |
| GetUp The up vector of the entity. | no value → vec3 retval | CBaseEntity | |
| GetVelocity The linear velocity for the entity. | no value → vec3 retval | CBaseEntity | |
| GetWorldSpaceCenter The entity worldspace center. | no value → vec3_worldspace retval | CBaseEntity | |
| IsModel Returns true if the entity is using the given model, false otherwise | string strModel → bool retval | CBaseEntity | |
| IsMotionEnabled Returns true if the entity is motion-enabled (i.e. its ideal motion type is dynamic). Note that the entity may still end up keyframed in some cases, e.g. if it's hierarchically attached to another keyframed entity. | no value → bool retval | CBaseEntity | |
| Kill | no value | CBaseEntity | |
| KillConstrained | no value | CBaseEntity | |
| KillHierarchy | no value | CBaseEntity | |
| NameMatches Returns true if the entity name matches the given string. Wildcards are accepted. | string pNameOrWildcard → bool retval | CBaseEntity | |
| PlatformFollowYaw | no value | CBaseEntity | |
| PlatformIgnoreYaw | no value | CBaseEntity | |
| RemoveAttribute | string | CBaseEntity | |
| RemoveContext | string | CBaseEntity | |
| RemoveModifier | string | CBaseEntity | |
| SetAbsAngles Set the world orientation of this entity. | qangle angles | CBaseEntity | |
| SetAbsOrigin Set the world origin of this entity. | vec3_worldspace vPos | CBaseEntity | |
| SetAbsScale Set the world scale of this entity. | float flScale | CBaseEntity | |
| SetDamageFilter | string | CBaseEntity | |
| SetKinematic | bool bKinematic | CBaseEntity | |
| SetLocalAngles Set the local orientation of this entity. Use when you have a parent. | qangle angles | CBaseEntity | |
| SetLocalOrigin Set the local origin of this entity. Use when you have a parent. | vec3 vPos | CBaseEntity | |
| SetLocalScale Set the local scale of this entity. Use when you have a parent. | float flScale | CBaseEntity | |
| SetParent Set the parent of this entity. | ehandle pNewParent | CBaseEntity | |
| SetParentAttachment | string | CBaseEntity | |
| SetParentAttachmentMaintainOffset | string | CBaseEntity | |
| SetParentMaintainOffset Set the parent of this entity and maintain offsets. | ehandle pNewParent, string sAttachBoneName | CBaseEntity | |
| SetParentWithOffset Set the parent of this entity (with offset). | ehandle pNewParent, string sAttachBoneName, transform xAttachOffset | CBaseEntity | |
| SetScale | float flValue | CBaseEntity | |
| SetTeam | int | CBaseEntity | |
| TeamNum | int | CBaseEntity | |
| TeleportToPoint Teleport the given entity to the specified position and orientation | vec3_worldspace vPosition | CBaseEntity | |
| TeleportToTransform Teleport the given entity to the specified transform | transform_worldspace xTransform | CBaseEntity | |
| Use | int | CBaseEntity | |
| WasThrownByPlayer Returns true if the entity was recently thrown by the player | no value → bool retval | CBaseEntity | |
| Declared by CPhysMotor · 0 | |||
| None. | |||
| Inherited from base classes and components · 5 | |||
| OnKilled | CBaseEntity | ||
| OnUser1 | CBaseEntity | ||
| OnUser2 | CBaseEntity | ||
| OnUser3 | CBaseEntity | ||
| OnUser4 | CBaseEntity | ||
m_hAttachedObjectm_hAnchorObjectm_angularAccelerationm_flTorqueScalem_flSpeedWhenSpinUpOrSpinDownStartedm_pFixedWorldBodym_pMotorJointSetSpeed (InputSetTargetSpeed)SetFriction (InputSetFriction)TurnOn (InputTurnOn)TurnOff (InputTurnOff)m_speedm_maxTorqueaxis (m_axis): flags ["save","key"] → ["key"]inertiafactor (m_inertiaFactor): flags ["save","key"] → ["key"]m_sUniqueHammerIDm_pModifierPropspeed (m_flSpeed)m_flAnimTimem_flSimulationTimem_flCreateTimem_nLastThinkTickm_bDisabledContextThinksm_CScriptComponentm_aThinkFunctionsm_ResponseContextsm_pSubclassVDatam_flAbsScalem_flScalem_flClientLocalScalem_vRenderOriginm_nodeToWorldm_pOwnerm_pParentm_pChildm_pNextSiblingm_nParentAttachmentOrBonem_bDirtyHierarchym_bDirtyBoneMergeInfoSetFriction floatSetSpeed floatTurnOffTurnOnGetActualSpeed: friendly_name "Get Actual Speed (phys_motor)" → "Get Actual Speed"SetSpinDownTime: friendly_name "Set Spin Down Time (phys_motor)" → "Set Spin Down Time"SetSpinUpTime: friendly_name "Set Spin Up Time (phys_motor)" → "Set Spin Up Time"SetSystemInertiaScale: friendly_name "Set System Inertia Scale (phys_motor)" → "Set System Inertia Scale"AddAttribute stringAddContext stringAddModifier stringAddOutput string pParamChangeSubclass stringClassMatches string entityTypeClearContextClearParentDisableAutoSleepingDisableDamageForcesDisablePlatformDisableShadow