Results 1 to 9 of 9

Thread: [CoD 1.1] Can you get player's bearing ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    player angles.jpg

    You can write a function like:

    PHP Code:
    checkAngles() {
        while (
    1) {
            
    players getentarray("player""classname");
            for (
    0players.sizei++) {
                
    player players[i];
                
    angles player getPlayerAngles();
                
    player iprintlnbold("angles"angles);
            }
            
    wait 1;
        }

    Or including the yaw in output:

    PHP Code:
    checkAngles() {
        while (
    1) {
            
    players getentarray("player""classname");
            for (
    0players.sizei++) {
                
    player players[i];
                
    angles player getPlayerAngles();
                
    yaw angles[1];
                
    player iprintlnbold("angles "angles"yaw "yaw);
            }
            
    wait 1;
        }

    And just add it somewhere via thread checkAngles();

    So the actual value is yaw = player getPlayerAngles()[1] (as @IzNoGoD pointed out)
    Attached Thumbnails Attached Thumbnails player angles.png  
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    raphael (22nd March 2023)

Posting Permissions

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