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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
RE: Collapse

(10-28-2011, 12:53 PM)Sauron The King Wrote: Thanks for the quick responses!
And actually I am a dutchman Smile (From holland)

After I read the posts, I made this:

//////////////////////////////////////////////////
// Slaapkamer Geheime doorgang
void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever_Sleepingroom", "func_shelf");
}


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
void OnEnter()
{
AddEntityCollideCallback("Player", "Collapse_Sleepingrooms", "Collidewhencollapse", true, 1);
}

void Collidewhencollapse(string &in asParent, string &in asChild, int alState)
{SetEntityActive("cave_in_1", "true");}

If I left "void Collidewhencollapse(string &in asParent, string &in asChild, int alState)" away, the Entity (The fallen rocks) will be there right away. So I thought that I would make the rocks appear after I entered the area by adding that sentence.
If I play my map now, I will get the following error:
"FATAL ERROR: Could not load script file 'mymaps/The_Haunted_Castle_of_Algium.hps'!
main (26,2): ERR : No matching signatures to 'SetEntityActive(string@&, string @&)'

I want the rocks to appear after I entered the area. When they appear, there must be a sound of collapsing stones.
Thanks for helping me before, but could you help me further with this?
This happened because you have put "" around a bool. Bools do not need "" around them. change "true" to true



10-28-2011, 01:15 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: 1 Guest(s)