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]Variable not declared
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: [SCRIPT]Variable not declared

Try this:

PHP Code: (Select All)
void VaseEvent(string &in asParent, string &in asChild, int alState)
{
    
SetLocalVarInt("EventChance", RandInt(1,4));
    if (
GetLocalVarInt("EventChance")==1)
    {
        
AddTimer("", RandFloat(0, 3), "VaseEventDelay");
    }
}
void VaseEventDelay(string &in asTimer)
{
    
AddPropImpulse("vase01_1", 0, 0, 20, "");
    
GiveSanityDamage(10, true);
    
SetEntityActive("ScriptArea_11", false);
    
SetEntityActive("ScriptArea_12", false);
} 

In Ruins [WIP]
04-08-2013, 11:29 PM
Find


Messages In This Thread
[SCRIPT]Variable not declared - by Yare - 04-08-2013, 10:57 PM
RE: [SCRIPT]Variable not declared - by Yare - 04-08-2013, 11:14 PM
RE: [SCRIPT]Variable not declared - by NaxEla - 04-08-2013, 11:29 PM
RE: [SCRIPT]Variable not declared - by Yare - 04-08-2013, 11:40 PM
RE: [SCRIPT]Variable not declared - by NaxEla - 04-09-2013, 01:53 AM



Users browsing this thread: 1 Guest(s)