Added more documentation

Blixibon 2020-05-21 10:53:30 -05:00
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 |
***