YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Script for a custom overlay in Left 4 Dead 2 doesn't turn off
Systane
#1 Posted : Monday, October 11, 2021 8:37:42 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/8/2021(UTC)
Posts: 1
Location: Italy

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi all,
I have an annoying problem: I have a script for an event that takes place in the videogame Left 4 Dead 2 (a videogame that uses the Squirrel language) which activates an overlay once triggered. The problem is that, when activated and showed on screen, if all the players die and have to restart the map, the overlay doesn't turn off, it stays on.
Here's the code lines that I have for turning off the overlay, if you could please let me know what I have to add / change to turn it off when the map is restarted

Quote:
// Store the name of our overlay.
PipeBombsOverlay <- null;

function OnGameEvent_round_end( params )
{
TurnOffOverlay();
}

function OnGameEvent_versus_round_end( params )
{
TurnOffOverlay();
}

function TurnOffOverlay()
{
// Round ended. Make sure we turn the overlay off.
printl("Round ended, turn off the overlay" );
EntFire( PipeBombsOverlay.GetName(), "stopoverlays");
}


Thank you all
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.042 seconds.