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
Wheel open door.
BonesTheRabbit Offline
Member

Posts: 68
Threads: 20
Joined: Feb 2012
Reputation: 2
#6
RE: Wheel open door.

Sorry to necro this thread, but it's the only one I could find on this particular subject. I've been trying to get this working, and I'm guessing I'm doing something silly, because it just doesn't want to work with me.

void OnEnter()
{    
    SetEntityConnectionStateChangeCallback("EntityName", "FunctionName");
}

void FunctionName(string &in asEntity, int ValveState)
{    
    if (ValveState == 1)
    {
        SetPropObjectStuckState("EntityName", 1);
        PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.0f, false);
    }
}

I've triple checked the entity name, but the valve isn't locking, and the sound isn't playing. I've been looking through various tutorials, though most deal with levers, and I guess something is different between them? I have a valve which opens a sliding door elsewhere on my map, and that works fine, but this one is proving problematic.

Any help would be greatly appreciated.
(This post was last modified: 10-07-2013, 07:30 PM by BonesTheRabbit.)
10-07-2013, 07:25 PM
Find


Messages In This Thread
Wheel open door. - by ShyGuySays - 07-20-2012, 09:38 PM
RE: Wheel open door. - by Your Computer - 07-20-2012, 09:40 PM
RE: Wheel open door. - by ShyGuySays - 07-20-2012, 09:48 PM
RE: Wheel open door. - by Your Computer - 07-21-2012, 12:15 AM
RE: Wheel open door. - by ShyGuySays - 07-21-2012, 01:35 AM
RE: Wheel open door. - by BonesTheRabbit - 10-07-2013, 07:25 PM



Users browsing this thread: 1 Guest(s)