Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help HUD Problem
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: HUD Problem

Take a look at an Example from my Original PREMONITION mod.
Here take a look and try to understand.
PHP Code: (Select All)
////////Scripts made by DnALANGE ///////////

void OnStart()
{
/////HudShowsKeyInGarden/////
AddEntityCollideCallback("Player""HudMagnifierglass""MagnifierKeyGarden"false0);


                                 
/////Magnifierglass/////
    
void MagnifierKeyGarden(string &in asParentstring &in asChildint alState)
{
if(
alState == 1)
{
StartInsanityEvent("MagnifierGlass_1");
}

if(
alState == -1)
{
StopCurrentInsanityEvent();
}
}
                                          
/////EndHud///// 
-----
What this does is when your are INSIDE a SCRIPTAREA (HudMagnifierglass) the event is there, when you LEAVE the SCRIPTAREA the event will STOP.
(This post was last modified: 05-07-2014, 07:27 PM by DnALANGE.)
05-07-2014, 07:20 PM
Find


Messages In This Thread
HUD Problem - by SSEAlexander - 05-07-2014, 06:27 PM
RE: HUD Problem - by DnALANGE - 05-07-2014, 07:16 PM
RE: HUD Problem - by SSEAlexander - 05-07-2014, 07:18 PM
RE: HUD Problem - by DnALANGE - 05-07-2014, 07:20 PM
RE: HUD Problem - by SSEAlexander - 05-07-2014, 07:21 PM
RE: HUD Problem - by FlawlessHappiness - 05-07-2014, 08:23 PM
RE: HUD Problem - by DnALANGE - 05-07-2014, 09:20 PM
RE: HUD Problem - by SSEAlexander - 05-09-2014, 03:31 PM
RE: HUD Problem - by PutraenusAlivius - 05-09-2014, 04:20 PM
RE: HUD Problem - by SSEAlexander - 05-10-2014, 03:41 PM
RE: HUD Problem - by DnALANGE - 05-10-2014, 03:48 PM
RE: HUD Problem - by SSEAlexander - 05-10-2014, 04:02 PM
RE: HUD Problem - by SSEAlexander - 05-10-2014, 05:55 PM
RE: HUD Problem - by DnALANGE - 05-10-2014, 08:01 PM
RE: HUD Problem - by SSEAlexander - 05-10-2014, 08:03 PM



Users browsing this thread: 1 Guest(s)