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
Balpert Spijsbat Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#1
Lid scripting

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?
10-23-2012, 08:15 PM
Find
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
Balpert Spijsbat Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#3
RE: Lid scripting

Thank you very much! Big Grin
10-25-2012, 05:39 PM
Find
ZodiaC Offline
Member

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

(10-25-2012, 05:39 PM)Balpert Spijsbat Wrote: Thank you very much! Big Grin
No problem pal! Wink

[Image: 2H1Mc.jpg]
10-25-2012, 06:50 PM
Find




Users browsing this thread: 1 Guest(s)