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
Wall should get active
mr.bonent Offline
Junior Member

Posts: 47
Threads: 13
Joined: May 2011
Reputation: 0
#1
Wall should get active

My Problem is that I want to get a wall active when the player enters an Scriptarea, but It doesn't work.

I used the wallentities from Mooserider.
Here the Script.

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "BuchErscheinung", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "WandErscheinung", true, 1);
AddEntityCollideCallback("Player", "DoorClosedArea_1", "DoorClosedAndLook", true, 1);
AddUseItemCallback("", "DoorKey_1", "mansion_4", "UsedKeyOnDoor", true);

}
void BuchErscheinung(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("buch", true);
AddDebugMessage("buch", false);
}
void WandErscheinung(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("wand", true);
AddDebugMessage("wand", false);
}
void DoorClosedAndLook(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_6", true, true);
StartPlayerLookAt("mansion_6", 10.0f, 10.0f, "");
PlaySoundAtEntity("Schrei", "05_event_door_bang.snt", "mansion_6", 2.0f, false);
AddTimer("", 1.0f, "stoplook");
AddTimer("", 4, "stopsound");
}
08-01-2011, 07:26 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#2
RE: Wall should get active

You need to enter the modeleditor and edit the wall and change it so it's an object.
08-01-2011, 07:35 PM
Find
mr.bonent Offline
Junior Member

Posts: 47
Threads: 13
Joined: May 2011
Reputation: 0
#3
RE: Wall should get active

It's already an entity, so I can set it passiv in the Editor.
08-01-2011, 08:06 PM
Find




Users browsing this thread: 3 Guest(s)