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
Lid scripting
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#2
RE: Lid scripting

(10-23-2012, 08:15 PM)Balpert Spijsbat Wrote: Hello, i'm scripting a custom story.
And I would like to activate something (a skull) when the player lights a bonfire,
how should I do that?
void OnStart()
{

SetEntityCallbackFunc("bonfire_1","bonfire");
}

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

SetEntityActive("skull", true);
}


That's for the scripting part

[Image: 2H1Mc.jpg]
10-23-2012, 09:21 PM
Find


Messages In This Thread
Lid scripting - by Balpert Spijsbat - 10-23-2012, 08:15 PM
RE: Lid scripting - by ZodiaC - 10-23-2012, 09:21 PM
RE: Lid scripting - by Balpert Spijsbat - 10-25-2012, 05:39 PM
RE: Lid scripting - by ZodiaC - 10-25-2012, 06:50 PM



Users browsing this thread: 1 Guest(s)