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
Script Help Collapse
devin413 Offline
Member

Posts: 175
Threads: 7
Joined: Jul 2011
Reputation: 3
#5
RE: Collapse

Spoiler below!

void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("Shelf_Secret_Sleepingroom",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}

//////////////////////////////////////////////////
// Slaapkamer boel stort in





//////////////////////////////////////////////////
// Slaapkamer Geheime doorgang
//yehh a german one was geht Big Grin


void OnEnter()
{
AddEntityCollideCallback("Player", "Collapse_Sleepingrooms", "Collidewhencollapse", true, 1);



SetEntityActive("cave_in_1", true);



SetEntityConnectionStateChangeCallback("Lever_Sleepingroom", "func_shelf");
}

// True never made so "True" you must make it so SetEntityActive("cave_in_1", true);
//SetEntityActive(string& asName, bool abActive); bool abActive = True or False it dont need to declaration


hope that helps you

Boris Game Studios: Devin413 Moddels Maps Scripts.
Tenebris Lake
Killings In Altstadt

(This post was last modified: 10-28-2011, 02:33 PM by devin413.)
10-28-2011, 12:12 PM
Find


Messages In This Thread
Collapse - by Sauron The King - 10-27-2011, 11:52 PM
RE: Collapse - by Your Computer - 10-27-2011, 11:58 PM
RE: Collapse - by Sauron The King - 10-28-2011, 09:50 AM
RE: Collapse - by flamez3 - 10-28-2011, 10:13 AM
RE: Collapse - by devin413 - 10-28-2011, 12:12 PM
RE: Collapse - by Sauron The King - 10-28-2011, 12:53 PM
RE: Collapse - by flamez3 - 10-28-2011, 01:15 PM
RE: Collapse - by devin413 - 10-28-2011, 02:44 PM
RE: Collapse - by flamez3 - 10-28-2011, 03:09 PM
RE: Collapse - by devin413 - 10-28-2011, 03:16 PM
RE: Collapse - by flamez3 - 10-28-2011, 03:27 PM
RE: Collapse - by devin413 - 10-28-2011, 06:08 PM
RE: Collapse - by Sauron The King - 10-28-2011, 06:18 PM
RE: Collapse - by devin413 - 10-28-2011, 06:22 PM
RE: Collapse - by Sauron The King - 10-30-2011, 04:00 PM
RE: Collapse - by Sauron The King - 11-02-2011, 01:38 PM



Users browsing this thread: 10 Guest(s)