[Include] FCNPC Extended Functions
#4

Three this functions is good for my fcnpc zombie

Edit:functions have 1 warning
PHP Code:
warning 202number of arguments does not match definition 
PHP Code:
stock FCNPC_GoToPlayerEx(npcidplayeridFloat:distFloat:ranglemovetype MOVE_TYPE_WALKUseZMap 0)
{
    new 
Float:xFloat:yFloat:zFloat:fa;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridfa);
    
rangle += fa;
    
= (dist floatsin(-rangle,degrees));
    
= (dist floatcos(-rangle,degrees));
    
FCNPC_GoTo(npcidxyz,movetype,UseZMap);

Fix:
PHP Code:
stock FCNPC_GoToPlayerEx(npcidplayeridFloat:distFloat:ranglemovetype MOVE_TYPE_WALKUseZMap 0)
{
    new 
Float:xFloat:yFloat:zFloat:fa;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridfa);
    
rangle += fa;
    
= (dist floatsin(-rangle,degrees));
    
= (dist floatcos(-rangle,degrees));
    
FCNPC_GoTo(npcidxyz,movetype,10UseZMap);//10 is Speed when npc use car you can change.

Reply


Messages In This Thread
FCNPC Extended Functions - by Pottus - 22.04.2013, 04:27
Re: FCNPC Extended Functions - by Weponz - 26.05.2014, 22:34
Re: FCNPC Extended Functions - by Pottus - 27.05.2014, 01:15
Re: FCNPC Extended Functions - by VinPure - 27.05.2014, 03:37

Forum Jump:


Users browsing this thread: 1 Guest(s)