How to set another arrow on north?
#3

This command creates 10 arrows one after another in player facing angle. Try it in game and combine its code with your.
PHP код:
CMD:arrow(playeridparams[])
{
    new 
Float:pX,Float:pY,Float:pZFloat:a;
    
GetPlayerFacingAngle(playerida);
    
GetPlayerPos(playerid,pX,pY,pZ);
    for(new 
110i++) {
        
pX += floatmul(2floatsin(-adegrees));
        
pY += floatmul(2floatcos(-adegrees));
        
CreateObject(1318pXpYpZ09090-a);
    }
    return 
1;

Reply


Messages In This Thread
How to set another arrow on north? - by weex - 22.02.2017, 08:09
Re: How to set another arrow on north? - by weex - 22.02.2017, 22:54
Re: How to set another arrow on north? - by BroZeus - 23.02.2017, 05:34
Re: How to set another arrow on north? - by rt-2 - 23.02.2017, 06:51
Re: How to set another arrow on north? - by BroZeus - 23.02.2017, 12:15
Re: How to set another arrow on north? - by rt-2 - 17.03.2017, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)