-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
Description
http://forum.sa-mp.com/showpost.php?p=3691458&postcount=2691
The issue is when the NPC is aiming or shooting at player, the upper body disappears.
Video: https://youtu.be/_QUNa4-mK8E
Plugin: FCNPC - Fully Controllable NPC v1.0.5
OS: Windows 10 x64
Code to reproduce:
#include <a_samp>
#include <fcnpc>
#include <izcmd>
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xB35959AA
new npcid;
public OnFilterScriptInit()
{
// Set the update rate
FCNPC_SetUpdateRate(100);
// Create and spawn the NPC
npcid = FCNPC_Create("Test_Bot");
if(npcid == INVALID_PLAYER_ID)
{
printf("Warning: Failed to create NPC ID %d (%s)", npcid, "Test_Bot");
return 1;
}
FCNPC_Spawn(npcid, random(299), 0, 0, 0);
return 1;
}
public OnFilterScriptExit()
{
FCNPC_Destroy(npcid);
return 1;
}
CMD:nspawn(playerid,params[])
{
new Float:pPos[3];
GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
FCNPC_SetPosition(npcid,pPos[0]+ 3.0,pPos[1],pPos[2]);
return 1;
}
CMD:ngoto(playerid,params[])
{
FCNPC_GoToPlayer(npcid,playerid);
return 1;
}
CMD:ngun(playerid,params[])
{
FCNPC_SetWeapon(npcid,30);
FCNPC_SetAmmo(npcid,10);
return 1;
}
CMD:naim(playerid,params[])
{
FCNPC_AimAtPlayer(npcid,playerid);
return 1;
}
CMD:nshoot(playerid,params[])
{
FCNPC_ToggleReloading(npcid,false);
FCNPC_ToggleInfiniteAmmo(npcid,true);
FCNPC_AimAtPlayer(npcid,playerid,true);
return 1;
}Hey I have some news, I've just tried plugin FCNPC - Fully Controllable NPC v1.0.5 on my Ubuntu > server and everything works fine! The upper body DOES NOT dissapear.
So this only happens on my Windows Server - local pc server.