FN_PowerOutTask
FN_PowerOutTask cuts the warehouse lights and moves the camera to the fuse box. Inserting a fuse completes this task and starts the lighting task.
Inserting the fuse
public void InsertFuse() {
bl_fuseInserted = true;
MarkTaskComplete();
TaskManager.lst_allTasks = new() { lightsTask };
TaskManager.SetCurrentTask(lightsTask);
lightsTask.BeginTask();
}
Completes the fuse task, replaces the task list with lightsTask and makes it current.
Starting the outage
public override void BeginTask() {
DisableLights();
PlayShutdownSFX();
MoveToFuseBox();
}
Disables the lights, plays the shutdown sound and starts the fuse-box camera move.
Moving to the fuse box
private void MoveToFuseBox() {
cameraMovement.MoveToPoint(tr_cinematicView, fl_lerpSpeed);
DisablePlayerControl();
}
Moves the camera to the assigned view and disables player control.