proxy models
[carveJwlIkooP6JGAAIwe30JlM.git] / world_entity.c
index 73caa0bf8849ec6e83323d824b937733b61c5a26..975c008c2d4910ceb48f7feb9c09f98eeccf07fe 100644 (file)
@@ -286,6 +286,17 @@ static void ent_volume_call( world_instance *world, ent_call *call )
          entity_call( world, call );
       }
    }
+   else if( call->function == k_ent_function_trigger_leave ){
+      call->id = volume->target;
+
+      if( volume->flags & k_ent_volume_flag_particles ){
+         assert(0);
+      }
+      else{
+         call->function = volume->trigger.event_leave;
+         entity_call( world, call );
+      }
+   }
 }
 
 static void ent_audio_call( world_instance *world, ent_call *call ){