Quote:
Originally Posted by Dayrion
Hey. I should misunderstood something about Dynamic 3D Text Label.
I've this code
PHP код:
CMD:test_label(playerid, params[])
{
extract params -> new player:targetid; else return 0;
new Float:x,
Float:y,
Float:z;
GetPlayerPos(targetid, x, y, z);
CreateDynamic3DTextLabel("TEST LABEL123456", 0xFF0000FF, x, y, z + 5.0, 30.0, targetid, _, .testlos = 1, .playerid = playerid);
return 1;
}
The label is correctly created (even if the pose is the same despite of the z) but I can't see him though objects like testlos should. If anyone have ideas, tips, or something I'll take it.
|
You have to set the testlos to 0. Testlos = test Line of Sight, so you don't want it to test the line of sight. With 1, if there's an object on the line to the label, the label won't appear.