The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Teleporting Jolts & Player Position Variables
Horrorable Offline
Junior Member

Posts: 7
Threads: 2
Joined: Feb 2014
Reputation: 0
#1
Teleporting Jolts & Player Position Variables

Heya.

I'm working on a script for a amnesia level and I've ran into a bump. Actually a jolt. I'm trying to teleport a player from one hallway to another, both hallways are identical. The goal is to get it so the player teleports, but no one can tell. What I have now is a Area across the hallway A, so when the player walks through it it teleports him to hallway B. However the teleport tends to screw things up. Change his camera angle, turn him around and stuff. This creates a jolt where as the player walks through this section of the hallway his camera will suddenly turn angles and he might find himself walking in another direction. Giving a noticeable jolt.

Is there any way to get a variable for the players exact positions/head position? Then I could save the info right before the teleport and restore afterwords. If not does anyone else know a way to do this?

ALSO, I could only figure out how to teleport from the area in the hallway A to a Player start in hallway B. So if the player is sneaking along the wall he is suddenly teleported into the middle. Another jolting problem.

Any ideas?
Thanks in advance for any help. You guys(and gals) are great Heart

If necessary I could fix the second problem by making multiple small areas across hallway A and multiple start positions in hallway B, and just teleport to different start positions based on which area the player collided with. There would still be a jolt but it would be smaller. I am hoping someone else has a smoother looking option though. Again, thanks to anyone that can help Smile
(This post was last modified: 02-14-2014, 03:30 AM by Horrorable.)
02-14-2014, 03:22 AM
Find


Messages In This Thread
Teleporting Jolts & Player Position Variables - by Horrorable - 02-14-2014, 03:22 AM



Users browsing this thread: 1 Guest(s)