|
Post by Famer on Mar 22, 2017 17:50:27 GMT
As the title says, I want to attach the text to the moving body...
The main objective of mine is to display the name of the player above the car...
Thanks in advance...
|
|
|
Post by NicusorN5 on Mar 22, 2017 19:24:59 GMT
Just look in the tutorial projects. I remember there's a function that makes the text object 3D .
|
|
|
Post by Power Supersport on Mar 22, 2017 19:36:35 GMT
See i3DLocationToScreen.3dr in Script_Function_Usage_Examples folder... Also, to make the text go smaller in the distance you can add that to the existing script...
Vector3 cameraLocation; iObjectLocation (OBJ_22, cameraLocation); float distance = iVectorLength (cameraLocation - targetLocation); if (distance > 50) distance = 50; iObjectScaleSet (OBJ_0, Vector3 ((50 - distance) / 50, (50 - distance) / 50, 0));
|
|
|
Post by TinSoldier on Mar 22, 2017 21:21:19 GMT
Famer .. look at the networked projects i posted in tutorials, it has text added to each car and its even colored the same as the selected players cam ( use 1 to 4 to select the cams )
|
|
|
Post by commended on Apr 4, 2017 12:05:03 GMT
|
|