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
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


Messages In This Thread



Users browsing this thread: 1 Guest(s)