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 · 42 | ||||
| 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 | ||
| 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 | float32 | CPhysMotor | |
| SetSpeed | float32 | 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 · 60 | |||
| AddAttribute | string | CBaseEntity | |
| AddContext | string | CBaseEntity | |
| AddModifier | string | CBaseEntity | |
| AlternativeSorting | boolean | CBaseEntity | |
| ChangeSubclass | string | CBaseEntity | |
| ChangeTeam Set the entity team number | int iTeamNum | 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 | |
| DisableDamageForces | no value | CBaseEntity | |
| DisablePlatform | no value | CBaseEntity | |
| DisableShadow | no value | CBaseEntity | |
| DispatchResponse | string | 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 | string | CBaseEntity | |
| FireUser2 | string | CBaseEntity | |
| FireUser3 | string | CBaseEntity | |
| FireUser4 | string | 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 | |
| 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 | |
| GetLocalAngles Get the local orientation of this entity. | no value → qangle retval | CBaseEntity | |
| GetLocalScale Get the local scale of this entity. | no value → float retval | CBaseEntity | |
| GetOrigin The entity origin (local) | no value → vec3 retval | CBaseEntity | |
| GetTeamNumber The entity team number | no value → int retval | CBaseEntity | |
| IsModel Returns true if the entity is using the given model, false otherwise | string strModel → 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 | |
| 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 | string | CBaseEntity | |
| SetParentAttachment | string | CBaseEntity | |
| SetParentAttachmentMaintainOffset | string | CBaseEntity | |
| SetTeam | int32 | CBaseEntity | |
| TeamNum | int32 | 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 | int32 | 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