CBaseEntity¶
Functions¶
GetPropInt()¶
Parameters¶
Parameter | Type | Description |
---|---|---|
table | string | Table name |
netvar | string | Netvar name |
Return value¶
Name | Type | Description |
---|---|---|
value | int | Returns the specified netvar value as an int |
Example
1 2 3 4 |
|
GetPropFloat()¶
Parameters¶
Parameter | Type | Description |
---|---|---|
table | string | Table name |
netvar | string | Netvar name |
Return value¶
Name | Type | Description |
---|---|---|
value | float | Returns the specified netvar value as a float |
Example
1 2 3 4 |
|
GetPropBool()¶
Parameters¶
Parameter | Type | Description |
---|---|---|
table | string | Table name |
netvar | string | Netvar name |
Return value¶
Name | Type | Description |
---|---|---|
value | bool | Returns the specified netvar value as a bool |
Example
1 2 3 4 |
|
GetPropVector()¶
Parameters¶
Parameter | Type | Description |
---|---|---|
table | string | Table name |
netvar | string | Netvar name |
Return value¶
Name | Type | Description |
---|---|---|
value | Vector | Returns the specified netvar value as a Vector |
Example
1 2 3 4 |
|
IsAlive()¶
Return value¶
Name | Type | Description |
---|---|---|
state | bool | Returns true if the entity is alive |
Example
1 2 3 4 |
|
IsPlayer()¶
Return value¶
Name | Type | Description |
---|---|---|
state | bool | Returns true if the entity is a player |
Example
1 2 3 4 |
|
EntIndex()¶
Return value¶
Name | Type | Description |
---|---|---|
index | int | Returns the entity index of the entity |
Example
1 2 3 4 |
|
IsEnemy()¶
Return value¶
Name | Type | Description |
---|---|---|
state | bool | Returns true if the entity is an enemy |
Example
1 2 3 4 |
|
GetName()¶
Return value¶
Name | Type | Description |
---|---|---|
name | string | Returns the name of the player |
Example
1 2 3 4 |
|
GetClassId()¶
Return value¶
Name | Type | Description |
---|---|---|
class_id | int | Returns the class id of the entity |
Example
1 2 3 4 5 6 7 8 9 |
|