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

New Topic Post Reply
Script for a custom overlay in Left 4 Dead 2 doesn't reset
Guest
#1 Posted : Sunday, October 17, 2021 10:49:28 AM(UTC)
Rank: Guest

Groups:
Joined: 7/25/2010(UTC)
Posts: 32

Thanks: 0 times
Was thanked: 1 time(s) in 1 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, but it's still on.
Here's the code lines that I have; if you please would let me know what I have to add / change to make the overlay turn 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
Elmer S. Ackerman
#2 Posted : Sunday, November 14, 2021 2:28:14 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/14/2021(UTC)
Posts: 2
Location: Elmer S. Ackerman

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
let me know what I have to add
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can 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.