Frictional Games Forum (read-only)

Full Version: Lid scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)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
Thank you very much! Big Grin
(10-25-2012, 05:39 PM)Balpert Spijsbat Wrote: [ -> ]Thank you very much! Big Grin
No problem pal! Wink