AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [How To] Show & Remove Laser (https://forums.alliedmods.net/showthread.php?t=193208)

Merciless 08-17-2012 12:31

[How To] Show & Remove Laser
 
Hello,

If I make a trail on player origins
PHP Code:

message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
    
write_byte(TE_BEAMPOINTS);
    
engfunc(EngFunc_WriteCoord,v_Origin[0]);
    
engfunc(EngFunc_WriteCoord,v_Origin[1]);
    
engfunc(EngFunc_WriteCoord,v_Origin[2]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[0]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[1]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[2]);
    
write_short(iBeamSprite);
    
write_byte(0);
    
write_byte(0);
    
write_byte(1000);    //Life
    
write_byte(70);    //Width
    
write_byte(0);    //wave
    
write_byte(255)    // r
    
write_byte(255// g
    
write_byte(255// b
    
    
write_byte(255);
    
write_byte(255);
    
message_end(); 

How to remove that trail only of that player?


All times are GMT -4. The time now is 05:51.

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