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
Activating a monster
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Activating a monster

Okay, here is what you did wrong. Pay close attention.
Spoiler below!

PHP Code: (Select All)
void Onstart () //WRONG. Should be void OnStart()
{
      
SetEntityCallbackFunc ("note_generic_4""pickup"); //Should be SetEntityCallbackFunc WITH NO SPACES.
}
void pickup(string &in entstring &in t//The callback syntax is incorrect; should be (string &in asEntity, string &in type)
{
      If(
== "OnPickup"//Can you please define what t is? Is it the note? Function? Declaring something without specifying it earlier.
       
{
              
SetEntityActive("servant_brute_1"true);
       }
}
//NOTE: Every grammar and word HAS to be correct. Any spaces or typo's will render your whole script not working. 


@daortir
Usually I use A LOT of SECF's to define OnLit and OnPickup because I can use SECF's to define the functions, rather than the hassle and extra work of finding the correct function for the scripts I want.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 01-12-2014, 03:31 PM by PutraenusAlivius.)
01-12-2014, 03:29 PM
Find


Messages In This Thread
Activating a monster - by VillainousPotato - 01-11-2014, 07:27 PM
RE: Activating a monster - by daortir - 01-11-2014, 07:28 PM
RE: Activating a monster - by VillainousPotato - 01-12-2014, 03:01 AM
RE: Activating a monster - by PutraenusAlivius - 01-12-2014, 03:29 PM
RE: Activating a monster - by PutraenusAlivius - 01-12-2014, 03:05 AM
RE: Activating a monster - by daortir - 01-12-2014, 09:48 AM



Users browsing this thread: 2 Guest(s)