Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The GetEventDescription method is in use for receiving the object description on free used to get a description of an event in natural language.

Syntax of for method invocation:

Code Block
function  GetEventDescription (obj_type : String, event : String)

Method arguments:

  1. obj_type – is a required argument. Specifies It specifies the type of system object, the description of which is required you want to get.
  2. event – is a required argument. Specifies It specifies the name of object description the event, the name of which is required you want to get.

Example. Display messages about When receiving of events for from camera 1 on the free , display messages about them in natural language in the Debug debug window.

Code Block
if (Event.SourceType == "CAM"&& Event.SourceId == "1")
{
	var str = GetEventDescription("CAM", Event.Action);
	DebugLogString(str);
}