player angles.jpg
You can write a function like:
PHP Code:
checkAngles() {
while (1) {
players = getentarray("player", "classname");
for (i = 0; i < players.size; i++) {
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 (i = 0; i < players.size; i++) {
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)