AlliedModders

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

Chihuahuax 11-27-2015 04:25

Te_projectile?
 
Searched all over the forum and theres almost no result related to TE_PROJECTILE.

I tried to code it like any other temp entity but it doesnt work right.
http://i65.tinypic.com/14ddjbq.jpgWhere did I do wrong?
PHP Code:

public setrums(id)
{
    new 
origin[3], Float:lookNormal[3], velocity[3]

    
get_user_originidorigin)

    
velocity_by_aimid3000lookNormal )
    
FVecIVeclookNormalvelocity )

    
message_beginMSG_BROADCASTSVC_TEMPENTITY )
    
write_byteTE_PROJECTILE )
    
write_coordorigin[0] )
    
write_coordorigin[1] )
    
write_coordorigin[2] )
    
write_coordvelocity[0] )
    
write_coordvelocity[1] )
    
write_coordvelocity[2] )
    
write_shortg_spriteLightning )
    
write_byte
    
write_byteid )
    
message_end()



NiHiLaNTh 11-27-2015 06:15

Re: Te_projectile?
 
Obviously you can only use models, not sprites for the projectile.

Chihuahuax 11-27-2015 06:22

Re: Te_projectile?
 
Ok thx
I'll have to do it the hard way then


All times are GMT -4. The time now is 17:50.

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