Author Topic:  teleportation orientation  (Read 234 times)

0 Members and 1 Guest are viewing this topic.

Hayden

  • Elite Member
  • *****
  • Posts: 534
  • Hey babe
  • Awards 1 year on site+100 posts Donated a giveaway prize. (Must be a prize of cash value.) 2 years on site+300 posts
    • View Profile
    • Awards
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
teleportation orientation
« on: November 23, 2017, 12:56:19 AM »
The simplest way I can explain it is you can use a script to choose which way the player is facing. What I mean by this is in the Teleport script you can tell the game to change the orientation of the player either by NSWE options and or degree numbers.
EX
Teleport [xyz,xyz|player] [absolute|Relative] [x,y]


Teleport [player] [10,10] [absolute] [90,-45]
this would teleport the player near the corner of the map facing east, and half way down.
Craig doesn't know me.

cY Agent 115

  • Member
  • ***
  • Posts: 221
  • Death to trolls on the forums
  • Awards 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: cY Agent 115
  • Steam: cY Agent 115
Re: teleportation orientation
« Reply #1 on: November 23, 2017, 08:01:24 AM »
Is there any way to get it so the person turns to the east after teleporting? i cant seem to get that but to work.

Curmescius

  • Supreme Member
  • *****
  • Posts: 4265
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: teleportation orientation
« Reply #2 on: November 26, 2017, 10:04:28 PM »
I would prefer for it to be based on vectors rather than angles.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

cY Agent 115

  • Member
  • ***
  • Posts: 221
  • Death to trolls on the forums
  • Awards 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: cY Agent 115
  • Steam: cY Agent 115
Re: teleportation orientation
« Reply #3 on: November 27, 2017, 05:41:47 AM »
I would prefer for it to be based on vectors rather than angles.
How would you do that? make it relative and not absolute?

Hayden

  • Elite Member
  • *****
  • Posts: 534
  • Hey babe
  • Awards 1 year on site+100 posts Donated a giveaway prize. (Must be a prize of cash value.) 2 years on site+300 posts
    • View Profile
    • Awards
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
Re: teleportation orientation
« Reply #4 on: November 27, 2017, 08:38:31 PM »
I would prefer for it to be based on vectors rather than angles.
How would you do that? make it relative and not absolute?
What are you asking?
Craig doesn't know me.

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6545
  • Dig Deep
  • Awards Developer 4 years on site+1000 posts 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site+100 posts Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
  • Steam: tota1miner
Re: teleportation orientation
« Reply #5 on: November 27, 2017, 09:12:41 PM »
I would prefer for it to be based on vectors rather than angles.
How would you do that? make it relative and not absolute?
No, he's talking about using a vector to describe the direction, rather than an angle of rotation. Similar to how the [View:x|y|z] value works.

Curmescius

  • Supreme Member
  • *****
  • Posts: 4265
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: teleportation orientation
« Reply #6 on: November 27, 2017, 11:23:27 PM »
I would prefer for it to be based on vectors rather than angles.
How would you do that? make it relative and not absolute?
No, he's talking about using a vector to describe the direction, rather than an angle of rotation. Similar to how the [View:x|y|z] value works.

To add on to this with my reasoning why, First off, The view is already a vector. Secondly, There is currently not a really easy way to convert a vector to angles, So having it as angles would make it very difficult to utilize this function with variables.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym