Raised This Month: $51 Target: $400
 12% 

Getting and setting correct coordinates for BeamPoints


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
farawayf
Senior Member
Join Date: Jan 2019
Old 08-20-2021 , 17:22   Getting and setting correct coordinates for BeamPoints
Reply With Quote #1

Hello.

For example, i want to draw a triangle with "TE_SetupBeamPoints" and 3 lines.

PHP Code:
void DrawTriangle(int clientfloat size)
{
    
float origin[3], originEdit[3];
    
GetClientAbsOrigin(clientorigin);
    
GetClientAbsOrigin(clientoriginEdit);

    
originEdit[1] += 100.0;
    
    
TE_SetupBeamPoints(originoriginEditiLaserMdl0008.05.05.001.0, {0,0,255,255}, 3);
    
TE_SendToAll();
    
    
origin[1] = originEdit[1];
    
originEdit[1] -= 50.0;
    
originEdit[2] += 100.0;
    
    
TE_SetupBeamPoints(originoriginEditiLaserMdl0008.05.05.001.0, {0,0,255,255}, 3);
    
TE_SendToAll();
    
    
origin[1] = originEdit[1];
    
origin[2] = originEdit[2];
    
originEdit[1] -= 50.0;
    
originEdit[2] -= 100.0;
    
TE_SetupBeamPoints(originoriginEditiLaserMdl0008.05.05.001.0, {0,0,255,255}, 3);
    
TE_SendToAll();

and it faces only one side, but i want to make it face to the direction player looking at. only XY coords.
how can i do that.

Last edited by farawayf; 08-20-2021 at 17:27.
farawayf is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode