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
TShapeShifter Offline
Junior Member

Posts: 17
Threads: 5
Joined: Jul 2014
Reputation: 0
#5
RE: Help on entity activation

(07-13-2014, 01:56 AM)Romulator Wrote: 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);
    }


Still didn't work Undecided Am I doing anything wrong? o:
PHP Code: (Select All)
void OnStart()
{
     
SetLocalVarInt("monster_appear"0);
}

void note_pickup(string &in asEntity)
{
    if(
GetLocalVarInt("monster_appear") == 2)
    {
         
SetEntityActive("doortest"true);
    }
    else
    {
         
AddLocalVarInt("monster_appear"1);
    }


void OnLeave()
{
 

(This post was last modified: 07-13-2014, 03:08 AM by TShapeShifter.)
07-13-2014, 03:07 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)