MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / qSecurityCameraAlerted

Function qSecurityCameraAlerted

scripts/Merc02.cpp:1087–1096  ·  view source on GitHub ↗

$$QUERY Custom b:[o:Security Camera] has been alerted qSecurityCameraAlerted Security Camera has been alerted Determines if a security camera has been alerted Parameters: Security Camera: the security camera object to check $$END */

Source from the content-addressed store, hash-verified

1085$$END
1086*/
1087bool qSecurityCameraAlerted(int obj_handle) {
1088 bool camera_alerted;
1089
1090 if (!qObjExists(obj_handle))
1091 return false;
1092
1093 SendCommand(obj_handle, obj_handle, SC_COM_GET_ALERT_STATUS, &camera_alerted);
1094
1095 return camera_alerted;
1096}
1097
1098/*
1099$$QUERY

Callers 1

CallEventMethod · 0.85

Calls 2

qObjExistsFunction · 0.85
SendCommandFunction · 0.85

Tested by

no test coverage detected