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
I need help with this script
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: I need help with this script

////////////////////////////
// Run first time starting map
void OnStart()
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i< 10;i++)
GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");

AddEntityCollideCallback("Player", "ENTITY COLLIDED WITH", "introscript", false, 0);
}

// Start of everything!

void introscript(string &in asParent, string &in asChild, int alState)
{
if(alState == 1)
{
PlayMusic("03_puzzle_secret", false, 1, 0, 5, true);
}
if(alState == -1)
{
StopMusic(0, 5);
}
}

Trying is the first step to success.
(This post was last modified: 01-13-2013, 01:05 PM by FlawlessHappiness.)
01-13-2013, 01:05 PM
Find


Messages In This Thread
I need help with this script - by DanielStanley - 01-12-2013, 09:18 PM
RE: I need help with this script - by The chaser - 01-12-2013, 10:59 PM
RE: I need help with this script - by NaxEla - 01-13-2013, 12:25 AM
RE: I need help with this script - by Damascus - 01-13-2013, 05:39 AM
RE: I need help with this script - by darksky - 01-13-2013, 09:09 AM
RE: I need help with this script - by FlawlessHappiness - 01-13-2013, 01:05 PM



Users browsing this thread: 1 Guest(s)