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 suck at scripting
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#4
RE: I suck at scripting

All of the EntityCollideCallbacks, SetEntityCallback and other shit have to be either in Void OnStart(), void onEntern(), and you use void OnLeave() to do shit when leaving a map for example preparing loading text and background, halting the music etc


it should look like this...

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player","AreaYell_1","Yell",true,1);
AddEntityCollideCallback("Player","Scare","Yell2",true,1);
}

void Yell2(string &in asParentstring &in asChildint alState)
{
    
//use your stuff here
}

void Yell(string &in asParentstring &in asChildint alState)
{
        
//do shit here

(This post was last modified: 07-28-2014, 08:25 AM by Slanderous.)
07-28-2014, 08:25 AM
Find


Messages In This Thread
I suck at scripting - by Daktoa - 07-28-2014, 04:16 AM
RE: I suck at scripting - by Mudbill - 07-28-2014, 05:07 AM
RE: I suck at scripting - by Daktoa - 07-28-2014, 07:55 AM
RE: I suck at scripting - by Slanderous - 07-28-2014, 08:25 AM
RE: I suck at scripting - by Mudbill - 07-28-2014, 05:14 PM
RE: I suck at scripting - by CarnivorousJelly - 07-29-2014, 01:24 AM
RE: I suck at scripting - by TheGreatCthulhu - 07-29-2014, 03:15 PM
RE: I suck at scripting - by Mudbill - 07-29-2014, 06:08 PM
RE: I suck at scripting - by Daemian - 07-30-2014, 03:10 AM



Users browsing this thread: 1 Guest(s)