mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-23 20:27:57 +03:00
Added more documentation
parent
1448deafed
commit
79719bd208
@ -63,8 +63,26 @@ The base class shared all NPCs derive from.
|
||||
| *bool* IsInPlayerSquad()| Check if the NPC is in the player's squad. |
|
||||
|
||||
### CAI_BaseActor
|
||||
The base class for NPCs which act in complex choreo scenes.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *void* AddLookTarget(handle *target*, float *importance*, float *duration*, float *ramp*)| Add a potential look target for this actor. |
|
||||
| *void* AddLookTargetPos(Vector *target*, float *importance*, float *duration*, float *ramp*)| Add a potential look target position for this actor. |
|
||||
|
||||
### CAI_Network
|
||||
The global list of AI nodes. Can be accessed through a global `AINetwork` instance.
|
||||
|
||||
| Signature | Description |
|
||||
|:------------- | :-----|
|
||||
| *int* NumNodes()| Number of nodes in the level |
|
||||
| *Vector* GetNodePosition(int *nodeID*)| Get position of node using a generic human hull |
|
||||
| *Vector* GetNodePositionWithHull(int *nodeID*, int *hull*)| Get position of node using the specified hull |
|
||||
| *float* GetNodeYaw(int *nodeID*)| Get yaw of node |
|
||||
| *float* NearestNodeToPoint(Vector *position*, bool *checkVisibility*)| Get ID of nearest node |
|
||||
| *float* NearestNodeToPointForNPC(handle *npc*, Vector *position*, bool *checkVisibility*)| Get ID of nearest node |
|
||||
| *int* GetNodeType()| Get a node's type |
|
||||
| *handle* GetNodeHint()| Get a node's hint |
|
||||
|
||||
***
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user