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
Help on entity activation
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Help on entity activation

Yep (Only for another idea...)! Use Local Variables Smile

On each note that affects your monster counter, put the code name of your script in PlayerInteractCallback (MsHannerBananer pointed that out, but this is what she meant).
Spoiler below!
[Image: 99ada05fc4.jpg]

This is the code you should use :3
PHP Code: (Select All)
void OnStart()
{
    
SetLocalVarInt("monster_appear"0);
}

void note_pickup(string &in asEntity)
{
    if(
GetLocalVarInt("monster_appear") == 3//Change the three to the number of notes needed.
    
{
         
//script here what to happen
    
}
    else
    {
         
AddLocalVarInt("monster_appear"1);
    }


Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 07-13-2014, 01:57 AM by Romulator.)
07-13-2014, 01:56 AM
Find


Messages In This Thread
Help on entity activation - by TShapeShifter - 07-12-2014, 10:26 PM
RE: Help on entity activation - by TShapeShifter - 07-12-2014, 10:54 PM
RE: Help on entity activation - by Romulator - 07-13-2014, 01:56 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 03:07 AM
RE: Help on entity activation - by Mudbill - 07-13-2014, 07:38 AM
RE: Help on entity activation - by Romulator - 07-13-2014, 08:42 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:03 PM
RE: Help on entity activation - by Mudbill - 07-13-2014, 10:15 PM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:45 PM
RE: Help on entity activation - by Mudbill - 07-14-2014, 12:12 AM



Users browsing this thread: 1 Guest(s)