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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to end custom story as a Demo?
Author Message
Zypherzemus Offline
Member

Posts: 94
Joined: Jul 2011
Reputation: 0
Post: #13
RE: How to end custom story as a Demo?

bool GetSwingDoorLocked(string& asName);
bool GetSwingDoorClosed(string& asName);

Checks whether a swing door is locked/closed.

Ok, so I found this.. Would it work if instead of "Swing" you put "Level"?
I'm using this on a level door.
and What would the command look like?
If (GetLevelDoorLocked("labdoor") == false)
{
FadeOut(2.0f)
AddTimer("", 2.0f, "DemoCredits");
}

void DemoCredits(string &in asTimer)
{
StartCredits("01_Vicarious.ogg", false, "Ending", "MainCredits", 1);
}

I'm only guessing on this, I don't know if it's correct
07-14-2011 06:26 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to end custom story as a Demo? - Zypherzemus - 07-14-2011 06:26 AM



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