AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rotate lighting effect around player (https://forums.alliedmods.net/showthread.php?t=214065)

Strick3n 04-22-2013 13:36

Rotate lighting effect around player
 
hello i need someone who can help me with this code:

Code:

Lighting( index )
{
        new iOrigin[ 3 ];
        get_user_origin( index, iOrigin, 0 );
       
        message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
        write_byte( 0 ); // TE_BEAMPOINTS
        write_coord( iOrigin[ 0 ] ); // Start X
        write_coord( iOrigin[ 1 ] ); // Start Y
        write_coord( iOrigin[ 2 ] ); // Start Z
        write_coord( 0 );
        write_coord( 0 );
        write_coord( 0 );
        write_short( g_iLighting );
        write_byte( 0 );
        write_byte( 0 );
        write_byte( 2 );
        write_byte( 20 );
        write_byte( 30 );
        write_byte( random( 256 ) );
        write_byte( random( 256 ) );
        write_byte( random( 256 ) );
        write_byte( 255 );
        write_byte( 30 );
        message_end();
}

What i want to do is to rotate this lighting effect around player's origin,
but i have no idea how to do it.
Thanks in advance.


All times are GMT -4. The time now is 10:54.

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