diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index b4c065c..cb3d074 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -66,6 +66,10 @@ The base class shared by players and NPCs. | *int* GetRelationPriority(handle *target*)| Get a character's relationship priority for a specific entity. | | *void* SetRelationship(handle *target*, int *disposition*, int *priority*)| Set a character's relationship with a specific entity. | | *handle* GetVehicleEntity()| Get the entity for a character's current vehicle if they're in one. | +| *bool* InViewCone(Vector *target*)| Check if the specified position is in the character's viewcone. | +| *bool* EntInViewCone(handle *target*)| Check if the specified entity is in the character's viewcone. | +| *bool* InAimCone(Vector *target*)| Check if the specified position is in the character's aim cone. | +| *bool* EntInAimCone(handle *target*)| Check if the specified entity is in the character's aim cone. | | *Vector* BodyAngles()| Get the body's angles. | | *Vector* BodyDirection2D()| Get the body's 2D direction. | | *Vector* BodyDirection3D()| Get the body's 3D direction. | @@ -89,9 +93,17 @@ The base class shared all NPCs derive from. | *void* CapabilitiesRemove(int *capabilities*)| Remove capabilities from the NPC. | | *void* CapabilitiesClear()| Clear capabilities for the NPC. | | *string* GetSchedule()| Get the NPC's current schedule. | -| *string* GetTask()| Get the NPC's current task. | +| *int* GetScheduleID()| Get the NPC's current schedule ID. | | *void* SetSchedule(string *schedule*)| Set the NPC's current schedule. | +| *void* SetScheduleID(int *sched*)| Set the NPC's current schedule ID. | +| *string* GetTask()| Get the NPC's current task. | | *void* ClearSchedule(string *reason*)| Clear the NPC's current schedule for the specified reason. | +| *bool* HasCondition(int *condition*)| Get whether the NPC has a condition. | +| *bool* HasConditionID(int *condition*)| Get whether the NPC has a condition ID. | +| *void* SetCondition(int *condition*)| Set a condition on the NPC. | +| *void* SetConditionID(int *condition*)| Set a condition on the NPC by ID. | +| *void* ClearCondition(int *condition*)| Clear a condition on the NPC. | +| *void* ClearConditionID(int *condition*)| Clear a condition on the NPC by ID. | | *bool* IsMoving()| Check if the NPC is moving. | | *handle* GetExpresser()| Get a handle for this NPC's expresser. | | *bool* IsCommandable()| Check if the NPC is commandable. | @@ -155,6 +167,9 @@ Root class of all server-side entities. | Signature | Description | |:------------- | :-----| +| *bool* IsVisible(Vector *target*)| Check if the specified position can be visible to this entity. | +| *bool* IsEntVisible(handle *target*)| Check if the specified entity can be visible to this entity. | +| *bool* IsVisibleWithMask(Vector *target*, int *traceMask*)| Check if the specified position can be visible to this entity with a specific trace mask. | | *int* Classify()| Get Class_T class ID | ### CBasePlayer