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
I need help with this script
DanielStanley Offline
Junior Member

Posts: 9
Threads: 2
Joined: Sep 2011
Reputation: 0
#1
I need help with this script

Hey. So i made this script and i can't get it to work, does anyone know how to fix this? (I'm pretty new to this script thing)

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

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

// Start of everything!

AddEntityCollideCallback("Player", "introscript", false, 0);
}
void introstart(string &in asParent, string &in asChild, int alState)
{

if(alState == 1)
{
PlayMusic("03_puzzle_secret", false, 1.00, 0, 5, true);
}
if(alState == -1)
{
StopMusic(0, 5);
}
}
01-12-2013, 09:18 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



Users browsing this thread: 1 Guest(s)