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
Script Help Teleport Player Scripting Question
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#1
Teleport Player Scripting Question

Is there a way to use a method to Teleport the "PLAYER" while maintaining their camera orientation??.

example: the player look up when walking in a script area that use callcollidecallback to make a function that makes the player teleport. but I want it to be the least noticeable possible. so what could be the best way to do it? Huh
07-24-2014, 03:51 AM
Website Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#2
RE: Teleport Player Scripting Question

yea
SetPlayerActive(false);

07-24-2014, 03:55 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Teleport Player Scripting Question

Well, what I know is that you can't make a teleportation like that unnoticeable, the only best thing you can do is use a FadeOut and FadeIn.

@victorkim890(KimmyChimmy)
That's used to make the player not moving and not looking.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 07-24-2014, 04:30 AM by PutraenusAlivius.)
07-24-2014, 04:20 AM
Find
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#4
RE: Teleport Player Scripting Question

thanks i will test things out and let you know if i made something work.
07-24-2014, 04:30 AM
Website Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#5
RE: Teleport Player Scripting Question

(07-24-2014, 03:51 AM)BigG2k Gameplay Wrote: Is there a way to use a method to Teleport the "PLAYER" while maintaining their camera orientation??.

i thought he meant the players doesnt move at all

(This post was last modified: 07-24-2014, 05:03 AM by victorkim890(KimmyChimmy).)
07-24-2014, 05:02 AM
Find
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#6
RE: Teleport Player Scripting Question

(07-24-2014, 05:02 AM)Robosprog Wrote: Actually, I imagine if you recreated a room in perfect detail, forced the player to look at something specific whilst making them inactive then making them active after teleporting them again to the exact same spot, they'd not have noticed the teleportation per se, but rather that there was a cinematic. There are better ways to do this, however, and teleporting should really only be used in more cinematic sequences rather than to fuck with the player.

If you give the player something specific and interesting to look at, they might not even notice they are being forced.

This reminds me of something I've been planning. I haven't tested it, but I was thinking about making a "look-trigger".

So, imagine you've got a script area. When the player enters it, it triggers a StartPlayerLookAt() with zero speed, targeted to something big enough to fill the centre half of the screen from where the player is standing. When they exit the script area, it triggers a StopPlayerLookAt(). Because the LookAt has zero speed, the player's view won't actually be nudged towards it. When they do happen to look at it, it should immediately trigger another StartPlayerLookAt() that is targeted to something small, with a low, but not zero speed.

It's a bit of a fudge, but the effect would be that while the player is within the script area, if they look roughly in the direction you want, then their view is subtly snapped to the precise direction you want, and you can then trigger something to happen.

You could then teleport them to an identical room at that point.

(This post was last modified: 07-25-2014, 12:42 AM by MrBehemoth.)
07-25-2014, 12:40 AM
Find




Users browsing this thread: 2 Guest(s)