Add entity process event

This commit is contained in:
Vortrex
2022-05-22 13:28:02 -05:00
parent f9e7b00c9b
commit 7fc9763d39

View File

@@ -53,6 +53,8 @@ function addAllEventHandlers() {
addEventHandler("OnCameraProcess", onCameraProcess);
addEventHandler("OnMouseWheel", onMouseWheel);
addEventHandler("OnEntityProcess", onEntityProcess);
}
// ===========================================================================
@@ -99,6 +101,7 @@ function onProcess(event, deltaTime) {
processVehicleBurning();
//checkChatBoxAutoHide(); // Will be uncommented on 1.4.0 GTAC update
//processVehicleFires();
}
// ===========================================================================
@@ -235,4 +238,16 @@ function onMouseWheel(event, mouseId, deltaCoordinates, flipped) {
processMouseWheelForChatBox(mouseId, deltaCoordinates, flipped);
}
// ===========================================================================
function onEntityProcess(event, entity) {
if(!isSpawned) {
return false;
}
//if(entity.isType(ELEMENT_PED) && !entity.isType(ELEMENT_PLAYER)) {
// processNPCMovement(entity);
//}
}
// ===========================================================================