The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 [unsolved]Lantern use script problem.
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#1
[unsolved]Lantern use script problem.

I have a problem with this script piece:
void CollideLanternArea(string &in asParent,string &in asChild,int alState)
{    
    if(alState == 1){
    if(HasItem("lantern_1"))    
    SetLanternLitCallback("SlimeOff");
    }
}
void SlimeOff(bool abLit)
{    
    
    
    for(int i; i<8; i++)SetPropActiveAndFade("slime_"+i,false,1.5);
    
    PlayGuiSound("puzzle_acid",3);

    FadeLightTo("PointLight_18", 0,0, 0, 0, 0, 3);
}

The slimes won't disapear when i use my lantern and every time when i turn it on or off it makes that "puzzle_acid" sound.
I want the sound only heard once and the slimes disapear when i turn my lantern ON in the "LanternArea".

EDIT: and there appeared to be an another problem: When i turn the lantern off or on several times, the
game crahes.(in the "LanternArea")

Sorry for my bad english
(This post was last modified: 11-03-2012, 06:04 PM by Red.)
11-03-2012, 03:08 PM
Find


Messages In This Thread
[unsolved]Lantern use script problem. - by Red - 11-03-2012, 03:08 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:34 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:45 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 03:57 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 04:24 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 04:44 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:00 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:48 PM
RE: Lantern use script problem. - by Red - 11-03-2012, 05:54 PM



Users browsing this thread: 1 Guest(s)