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
Them Vert Doors
hoppem Offline
Junior Member

Posts: 44
Threads: 13
Joined: Nov 2011
Reputation: 1
#1
Them Vert Doors

Yes them vert doors how do you use them and how do you make them work to where a crank opens it because i looked in the main story and i didnt see any script for it...is there supposed to be a script for it ??? Huh
12-19-2011, 09:41 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Them Vert Doors

Vertical doors are normally MoveObject entities. Therefore you can use either SetMoveObjectState or SetMoveObjectStateExt to make them go up or down.

Tutorials: From Noob to Pro
12-19-2011, 12:00 PM
Website Find
hoppem Offline
Junior Member

Posts: 44
Threads: 13
Joined: Nov 2011
Reputation: 1
#3
RE: Them Vert Doors

I dont understand, would it be like this

void OnStart
{
SetEntityConnectionStateChangeCallback("crank", CrankFunction);
}

void CrankFunction(string &in asEntity, int alState)
{
    if (alState == 1)
    {
        SetMoveObjectStateExt("vert", 0,5, 15, 0, false);
    }
}


12-20-2011, 03:09 AM
Find




Users browsing this thread: 1 Guest(s)