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
.Lang File Help Making credits WHEN LEAVING a .map file
Author Message
oscar1007 Offline
Member

Posts: 65
Joined: Oct 2011
Reputation: 0
Post: #1
Making credits WHEN LEAVING a .map file
Hi!
Maybe this sounds easy to you but well this is my first custom story.
So i have a level door which go to nothing. If i try to open it i will get an error.
Is there a way to make the credits when "opening" that door?

Thanks!

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
01-16-2012 09:26 PM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,609
Joined: Sep 2011
Reputation: 198
Post: #2
RE: Making credits WHEN LEAVING a .map file
(01-16-2012 09:26 PM)oscar1007 Wrote:  Hi!
Maybe this sounds easy to you but well this is my first custom story.
So i have a level door which go to nothing. If i try to open it i will get an error.
Is there a way to make the credits when "opening" that door?

Thanks!
Make the player unable to touch/use the door using:

SetEntityInteractionDisabled("LEVELDOORNAME", true);


Then place a script area around the door. Go into the entity tab of the area on the right and make a callback function for "PlayerInteractCallback" to end the game.

01-16-2012 10:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
XxRoCkBaNdMaNxX Offline
Posting Freak

Posts: 1,119
Joined: Nov 2010
Reputation: 5
Post: #3
RE: Making credits WHEN LEAVING a .map file
Couldn't you just write the StartCredits function in the OnLeave() section of the hps?

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
01-16-2012 11:02 PM
Find all posts by this user Quote this message in a reply
oscar1007 Offline
Member

Posts: 65
Joined: Oct 2011
Reputation: 0
Post: #4
RE: Making credits WHEN LEAVING a .map file
(01-16-2012 11:02 PM)XxRoCkBaNdMaNxX Wrote:  Couldn't you just write the StartCredits function in the OnLeave() section of the hps?
No because i have other doors leading to other maps in the room.

But i have solved it. I started the credits in the same function when you unlock the door! Smile

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
01-16-2012 11:05 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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