CPointScriptUseTarget
7 own methods · 53 inherited · extends CBaseEntity
Script driven player use functionality.
Methods
callable on a CPointScriptUseTarget script handle| Script Function | Returns | Parameters | Description |
|---|---|---|---|
| CanShowBuildPanel | void | bool | Set whether the pop-up build panel should appear. |
| GetUseModelName | cstring | none | Get the name of the use model. |
| SetProgressBarCurrentProgress (ScriptSetPreviousProgress) | void | float | Set the ammount of time has been 'used' so far. |
| SetProgressBarFinishTime (ScriptSetUseTime) | void | float | Set the time required to use this button. If '0', no progress bar will be displayed. |
| SetProgressBarSubText (ScriptSetUseSubString) | void | cstring | Set the display subtext on the progress bar. |
| SetProgressBarText (ScriptSetUseString) | void | cstring | Set the display text on the progress bar. |
| StopUse | float | none | Stop the current use action. |
Inherited methods
reachable up the C++ base chain| Script Function | Returns | Parameters | Description / from |
|---|---|---|---|
| __KeyValueFromInt (KeyValueFromInt) | bool | cstring, float | @ ↑ CBaseEntity |
| __KeyValueFromString (KeyValueFromString) | bool | cstring, cstring | @ ↑ CBaseEntity |
| __KeyValueFromVector (KeyValueFromVector) | bool | cstring, Vector | @ ↑ CBaseEntity |
| ApplyAbsVelocityImpulse | void | Vector | Apply a Velocity Impulse ↑ CBaseEntity |
| ApplyLocalAngularVelocityImpulse | void | Vector | Apply an Ang Velocity Impulse ↑ CBaseEntity |
| ConnectOutput (ConnectOutputToScript) | void | cstring, cstring | Adds an I/O connection that will call the named function when the specified output fires ↑ CBaseEntity |
| DisconnectOutput (DisconnectOutputFromScript) | void | cstring, cstring | Removes a connected script function from an I/O event. ↑ CBaseEntity |
| FirstMoveChild (ScriptFirstMoveChild) | hscript | none | none ↑ CBaseEntity |
| GetAngles (GetAbsAngles) | QAngle | none | none ↑ CBaseEntity |
| GetBaseVelocity | Vector | none | Get Base? velocity ↑ CBaseEntity |
| GetCenter (ScriptGetWorldSpaceCenter) | Vector | none | Get world space center of object - absolute coords ↑ CBaseEntity |
| GetClassname | cstring | none | none ↑ CBaseEntity |
| GetContext (GetContextForScript) | unknown(0x21) | cstring | GetContext( name ): looks up a context and returns it if available. May return string, float, or null (if the context isn't found) ↑ CBaseEntity |
| GetEntityHandle (ScriptGetEHandle) | unknown(0x1e) | none | Get the entity as an EHANDLE ↑ CBaseEntity |
| GetEntityIndex (entindex) | int | none | none ↑ CBaseEntity |
| GetForwardVector (ScriptGetForward) | Vector | none | Get the forward vector of the entity ↑ CBaseEntity |
| GetHealth | int | none | none ↑ CBaseEntity |
| GetLocalAngles | QAngle | none | none ↑ CBaseEntity |
| GetLocalAngularVelocity | QAngle | none | Maybe local angvel ↑ CBaseEntity |
| GetLocalOrigin | Vector | none | none ↑ CBaseEntity |
| GetLocalVelocity | Vector | none | Get Entity relative velocity ↑ CBaseEntity |
| GetMaxHealth | int | none | none ↑ CBaseEntity |
| GetModelName (ScriptGetModelName) | cstring | none | none ↑ CBaseEntity |
| GetMoveParent (ScriptGetMoveParent) | hscript | none | If in hierarchy, retrieves the entity's parent ↑ CBaseEntity |
| GetName (GetEntityNameAsCStr) | cstring | none | none ↑ CBaseEntity |
| GetOrigin (GetAbsOrigin) | Vector | none | none ↑ CBaseEntity |
| GetOwnerEntity (ScriptGetOwnerEntity) | hscript | none | Get the owner entity, if there is one ↑ CBaseEntity |
| GetPreTemplateName | cstring | none | Get the entity name stripped of template unique decoration ↑ CBaseEntity |
| GetRootMoveParent (ScriptGetRootMoveParent) | hscript | none | If in hierarchy, walks up the hierarchy to find the root parent ↑ CBaseEntity |
| GetScriptScope | hscript | none | Retrieve the script-side data associated with an entity ↑ CBaseEntity |
| GetVelocity (GetAbsVelocity) | Vector | none | none ↑ CBaseEntity |
| IsPlayer | bool | none | none ↑ CBaseEntity |
| Kill (ScriptInputKill) | void | none | none ↑ CBaseEntity |
| NextMovePeer (ScriptNextMovePeer) | hscript | none | none ↑ CBaseEntity |
| OverrideFriction | void | float, float | Takes duration, value for a temporary override ↑ CBaseEntity |
| PrecacheModel (ScriptPrecacheModel) | int | cstring | none ↑ CBaseEntity |
| PrecacheScriptSound (Script_PrecacheScriptSound) | void | cstring | none ↑ CBaseEntity |
| SetAngles (SetAbsAngles) | void | QAngle | none ↑ CBaseEntity |
| SetContext (AddContextForScript) | void | cstring, cstring, float | SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity |
| SetContextNum (AddContextForScriptNumeric) | void | cstring, float, float | SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity |
| SetForwardVector (ScriptSetForward) | void | Vector | Set the orientation of the entity to have this forward vector ↑ CBaseEntity |
| SetFriction | void | float | Set PLAYER friction, ignored for objects ↑ CBaseEntity |
| SetGravity | void | float | Set PLAYER gravity, ignored for objects ↑ CBaseEntity |
| SetHealth | void | int | none ↑ CBaseEntity |
| SetLocalAngles | void | QAngle | none ↑ CBaseEntity |
| SetLocalOrigin | void | Vector | none ↑ CBaseEntity |
| SetMaxHealth | void | int | none ↑ CBaseEntity |
| SetModel | void | cstring | Set a model for this entity ↑ CBaseEntity |
| SetOrigin (ScriptSetOrigin) | void | Vector | none ↑ CBaseEntity |
| SetVelocity (SetAbsVelocity) | void | Vector | none ↑ CBaseEntity |
| TakeDamage (ScriptTakeDamage) | void | float, int, hscript | (flDamage, nDamageType, hAttacker) ↑ CBaseEntity |
| TakeDamageEx (ScriptTakeDamageEx) | void | hscript, hscript, hscript, Vector, Vector, float, int | (hInflictor, hAttacker, hWeapon, vecDamageForce, vecDamagePosition, flDamage, nDamageType) ↑ CBaseEntity |
| ValidateScriptScope | bool | none | Ensure that an entity's script scope has been created ↑ CBaseEntity |