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'm a dumb person.
evertuy Offline
Junior Member

Posts: 46
Threads: 9
Joined: Mar 2011
Reputation: 0
#1
I'm a dumb person.

I've always had a knack when it comes to map building, but when it comes to scripting, I'm totally lost.

But I decided to give it a go and I got this, and of course it doesn't work, can someone help me fix it so I can understand it? I'm trying to make it so when the player walks it a script area a sound plays.

void OnStart(){
    int GiveLanternOnStart = 0; // Set to 1 to receive a Lantern on start of game
    int TinderboxStartAmount = 0; // Amount of Tinderboxes you receive on start of game
    
    // SetPlayerSanity(100.0f);
    SetPlayerLampOil(0.0f);
        
    SetNumberOfQuestsInMap(1);
    
    AddQuest("Explore","Explore");
    
    PlayMusic("06_amb.ogg", true, 1, 3, 0, true);
    
    SetEntityPlayerInteractCallback("Player","Script1","PlaySound("Sound_1")",true,1);
    }

//if(ScriptDebugOn()){
    }

void OnEnter(){
    }

      void OnLeave(){
    }
(This post was last modified: 03-21-2011, 03:29 AM by evertuy.)
03-21-2011, 03:27 AM
Find


Messages In This Thread
I'm a dumb person. - by evertuy - 03-21-2011, 03:27 AM
RE: I'm a dumb person. - by Tanshaydar - 03-21-2011, 03:41 AM
RE: I'm a dumb person. - by thepaleking - 03-21-2011, 03:42 AM
RE: I'm a dumb person. - by Anxt - 03-21-2011, 04:05 AM
RE: I'm a dumb person. - by evertuy - 03-21-2011, 04:07 AM
RE: I'm a dumb person. - by Tanshaydar - 03-21-2011, 04:28 AM



Users browsing this thread: 1 Guest(s)