Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: rotate a player ?

  1. #1
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default rotate a player ?

    hey there, do you know of a way to rotate a player to a predefined angle once respawned? i had no sucess with angle, .angles =, rotate*, turn, turnlegs and others. I even could use stufftext if necessary

  2. #2

    Default

    You can do that by setting the angle on the spawn point.

    Should work.

  3. #3
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default

    Thank you Double' Actually i move it to another place just after he respawns and i'd like to make it aim towards a certain direction once having been moved.
    Ideally i want to make him respawn where he died and aiming at the same direction he was aiming when he died.

  4. #4

    Default

    For that you would have to save the angles when he have die and when he respawn you use that angles to point to that way.

  5. #5
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default

    Thanks Double' Yep i have the angle and origin both saved, but i cant succeed to apply the angle back to the player. Should a simple "angle" command on the player work? It has no effects when i try it.

  6. #6

    Default

    You have to use the face command to make him to point to that way.


    local.player face ( 0 0 0 )

  7. #7
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default

    oh nice one, thank you very much!

  8. #8

  9. #9
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default

    Haha so rotate is the polite word for chop & change Cool idea that doesn't seem too hard to achieve, but it's just for some fun testing in Mefy's FT.

  10. #10

    Default

    You can also just use viewangles, which is what the face function does internally.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •