Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Them Vert Doors
Author Message
hoppem Offline
Junior Member

Posts: 40
Joined: Nov 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,268
Joined: Jul 2011
Reputation: 223
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
hoppem Offline
Junior Member

Posts: 40
Joined: Nov 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)