Question about entrance and exit
#1

So, when player presses ENTER near a property, I want that player's screen slowly get black and when it's fully black, set player's pos, interior etc.. and after that player's screen slowly gets normal (not black).

How should I do that? If you know a link to a tutorial, send me!

+rep for helper.
Reply
#2

OnPlayerKeyStateChange - to detect when enter has been pressed.
IsPlayerInRangeOfPoint - to see if they are near a house.
SetPlayerPos and SetPlayerInterior - for setting the positions

Or you can just use an existing housing system (search the forums). But seriously the wiki is a marvellous tool that you should really check out before asking any questions in here.

Edit: Check ******' response for the fade out, completely forgot about that!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)