diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index b648ccb..92cf250 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -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