Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Update sisyphus_magic_v2.nut
Browse files Browse the repository at this point in the history
add function to randomize skybox
  • Loading branch information
TheBigBadMemeMan authored Sep 7, 2023
1 parent 795ebfc commit d8a1adc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vscripts/sisyphus_magic_v2.nut
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ function rain_tick(){
VS.EventQueue.AddEvent(rain_tick,2,this);
}

::skyboxes<-["sky_csgo_night02","deadcore_sky_9"];
function random_sky(){
local skybox = Entities.FindByName(null,"skybox");
if(skybox==null)return;
skybox.__KeyValueFromString("SkyboxName",skyboxes[RandomInt(0,skyboxes.len()-1)].tostring());
EntFireByHandle(skybox, "Trigger", "", 0, "", "");
}

/*
TextColor
{
Expand Down Expand Up @@ -635,4 +643,3 @@ function red_mist_squid_rng(){
EntFireByHandle(self,"Kill","",lifetime,null,null);
}});
}

0 comments on commit d8a1adc

Please sign in to comment.