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
Set wall passive
mr.bonent Offline
Junior Member

Posts: 47
Threads: 13
Joined: May 2011
Reputation: 0
#1
Set wall passive

Can anyone tell me why this does not work? (the SetPassive, "wand_2")

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);
SetEntityPassive("wand_2", true);
AddDebugMessage("wand", false);
AddDebugMessage("wand_2", false);
08-01-2011, 11:52 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Set wall passive

Where did you hear about SetEntityPassive()? It's not found here.

Tutorials: From Noob to Pro
08-02-2011, 12:39 AM
Website Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Set wall passive

SetEntityPassive ?? I don't think thats a valid script function wiki.frictional scripts and your missing a "}" at the very end.
08-02-2011, 12:48 AM
Find
mr.bonent Offline
Junior Member

Posts: 47
Threads: 13
Joined: May 2011
Reputation: 0
#4
RE: Set wall passive

Ohr sorry, I thought this function exists.
How can I do it else? That a wall becomes activated when the player enters the scriptarea?
08-02-2011, 01:07 AM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#5
RE: Set wall passive

SetEntityActive("wand_2", false);

will set the entity to inactive.
08-02-2011, 11:31 AM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#6
RE: Set wall passive

SetEntityPassive....never heard about that, too.
08-02-2011, 12:48 PM
Find
mr.bonent Offline
Junior Member

Posts: 47
Threads: 13
Joined: May 2011
Reputation: 0
#7
RE: Set wall passive

Thanks very much everybody.Smile
08-02-2011, 07:03 PM
Find




Users browsing this thread: 1 Guest(s)