mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-03 01:00:34 +03:00
Added all CAI_BaseNPC functions so far
parent
e818b7d681
commit
1448deafed
@ -45,6 +45,22 @@ The base class shared by players and NPCs.
|
||||
| *Vector* EyeDirection3D()| Get the eyes' 3D direction. |
|
||||
|
||||
### CAI_BaseNPC
|
||||
The base class shared all NPCs derive from.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *handle* GetEnemy()| Get the NPC's current enemy. |
|
||||
| *void* SetEnemy(handle *target*)| Set the NPC's current enemy. |
|
||||
| *Vector* GetEnemyLKP()| Get the last known position of the NPC's current enemy. |
|
||||
| *handle* FindEnemyMemory()| Get information about the NPC's current enemy. |
|
||||
| *int* GetNPCState()| Get the NPC's current state. |
|
||||
| *string* GetSchedule()| Get the NPC's current schedule. |
|
||||
| *string* GetTask()| Get the NPC's current task. |
|
||||
| *void* SetSchedule(string *schedule*)| Set the NPC's current schedule. |
|
||||
| *void* ClearSchedule(string *reason*)| Clear the NPC's current schedule for the specified reason. |
|
||||
| *handle* GetExpresser()| Get a handle for this NPC's expresser. |
|
||||
| *bool* IsCommandable()| Check if the NPC is commandable. |
|
||||
| *bool* IsInPlayerSquad()| Check if the NPC is in the player's squad. |
|
||||
|
||||
### CAI_BaseActor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user