Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] How to unlock door with a Wheel ?
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#5
RE: How to unlock door with a Wheel ?

As DnALANGE said add that code on "void OnStart()"

so it should looks like

Spoiler below!
PHP Code: (Select All)
void OnStart()
{
SetEntityConnectionStateChangeCallback("NameofyourwheelintheLeveleditor""unlockdoor"); 
PreloadSound("17_steam.snt");
PreloadSound("unlock_door.snt");
SetLocalVarInt("Valve_iron1"0);
}

void OnLeave()

{
SetupLoadScreen("Loading""LoadScreen1"0"LoadScreenImage1.png");
}
/////////Interact

void unlockdoor(string &in asEntityint alState)

{

if(
alState == 1)

{
SetLevelDoorLocked("door_complex1"false);
PlaySoundAtEntity("""unlock_door.snt""door_complex1"0false);
PlaySoundAtEntity("""17_steam.snt""barrier"0false);

}





And try using the spoiler it saves a lot of place in thread :P

like:[.spoiler]text[./spoiler] (without the dot) :D

(This post was last modified: 10-25-2014, 01:06 PM by Straxedix.)
10-25-2014, 01:03 PM
Find


Messages In This Thread
RE: How to unlock door with a Wheel ? - by Straxedix - 10-25-2014, 01:03 PM



Users browsing this thread: 1 Guest(s)