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

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#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
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#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
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#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
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)