Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No script working on my custom story *SOLVED*
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#2
RE: No script working on my custom story

Try this:

void OnStart()
{

SetEntityCallbackFunc("monster_oil", "OnPickup");

}


void OnPickup(string &in asEntity, string &in type)
{

SetEntityActive("servant_brute_1", true);

}

I hope this explains something.

void SetEntityCallbackFunc(string& asName, string& asCallback);
Calls a function when the player interacts with a certain entity.
Callback
syntax: void MyFunc(string &in asEntity, string &in
type)

Type depends on entity type and includes: “OnPickup”,
“Break”, “OnIgnite”, etc

(This post was last modified: 06-09-2012, 05:34 PM by Datguy5.)
06-09-2012, 05:30 PM
Find


Messages In This Thread
RE: No script working on my custom story - by Datguy5 - 06-09-2012, 05:30 PM



Users browsing this thread: 1 Guest(s)