AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Delete TE_BEAMPOINTS (https://forums.alliedmods.net/showthread.php?t=130235)

Empowers 06-21-2010 17:10

Delete TE_BEAMPOINTS
 
if I have beam like this
PHP Code:

    message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
    
write_byte(TE_BEAMENTPOINT);
    
write_short(i_Ent)
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[0]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[1]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[2]);
           ........... 

i can delete it with TE_KILLBEAM.

But is that possible to delete beam like this?
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]);
             ... 


ot_207 06-21-2010 17:12

Re: Delete TE_BEAMPOINTS
 
Nope. Killbeam is the method :wink:

Empowers 06-22-2010 04:33

Re: Delete TE_BEAMPOINTS
 
Quote:

Originally Posted by ot_207 (Post 1215702)
Nope. Killbeam is the method :wink:

Maybe searching for entity env_beam or something and removing it? I don't know why but TE_BEAMENTPOINT gives wrong beams sometimes and TE_BEAMPOINTS is fine.

Arkshine 06-22-2010 05:46

Re: Delete TE_BEAMPOINTS
 
TE_KILLBEAM kills only beams attached to an entity. For TE_BEAMPOINTS I don't think you can.


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

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