[Help FCNPC 2.0] FCNPC_AimAtPlayer
#1

Hello guys, I have a problem when I put FCNPC_AimAtPlayer dont shot, it stays aiming but it does not shoot. Why does this happen? I have version 2.0, in previous versions it worked perfectly.

PHP код:
public Shoot(playerid)
{
    
FCNPC_GoToPlayer(bot1playeridFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOtrue0.0true0.01.5250);
    
FCNPC_AimAtPlayer(bot1playeridtrue, -1true0.00.00.5);
    
SetTimerEx("Stop",33000false"i"playerid);
     return 
1;
}
public 
Stop(playerid)
{
    
FCNPC_StopAim(bot1);
    
FCNPC_SetKeys(bot1000);
return 
1;

Reply
#2

Quote:
Originally Posted by bookknp
Посмотреть сообщение
Hello guys, I have a problem when I put FCNPC_AimAtPlayer dont shot, it stays aiming but it does not shoot. Why does this happen? I have version 2.0, in previous versions it worked perfectly.

PHP код:
public Shoot(playerid)
{
    
FCNPC_GoToPlayer(bot1playeridFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOtrue0.0true0.01.5250);
    
FCNPC_AimAtPlayer(bot1playeridtrue, -1true0.00.00.5);
    
SetTimerEx("Stop",33000false"i"playerid);
     return 
1;
}
public 
Stop(playerid)
{
    
FCNPC_StopAim(bot1);
    
FCNPC_SetKeys(bot1000);
return 
1;

Bump
Reply
#3

Quote:
Originally Posted by bookknp
Посмотреть сообщение
Hello guys, I have a problem when I put FCNPC_AimAtPlayer dont shot, it stays aiming but it does not shoot. Why does this happen? I have version 2.0, in previous versions it worked perfectly.

PHP код:
public Shoot(playerid)
{
    
FCNPC_GoToPlayer(bot1playeridFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOFCNPC_MOVE_TYPE_AUTOtrue0.0true0.01.5250);
    
FCNPC_AimAtPlayer(bot1playeridtrue, -1true0.00.00.5);
    
SetTimerEx("Stop",33000false"i"playerid);
     return 
1;
}
public 
Stop(playerid)
{
    
FCNPC_StopAim(bot1);
    
FCNPC_SetKeys(bot1000);
return 
1;

Use FCNPC_GiveAmmo, I had the same problem, it doesn't shoot because it doesn't have ammo
Reply
#4

Quote:
Originally Posted by Kevinas100
Посмотреть сообщение
Use FCNPC_GiveAmmo, I had the same problem, it doesn't shoot because it doesn't have ammo
Thx very much Kevinas100, +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)