Help FCNPC NODE POINT - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help FCNPC NODE POINT (
/showthread.php?tid=522654)
Help FCNPC NODE POINT -
DarkZeroX - 28.06.2014
Hi,
I want to know how to create a nodes
I try:
Код:
new Float:NodeFCNPC [] [] =
{
{2127.4043, -2274.9846,20.6719},
{2130.0935, -2279.1536,21.4618},
[2133.9016, -2277.1782,20.6719},
{2137.3945, -2272.4336,18.5544}
};
FCNPC_SetNodePoint (Npc [0], NodeFCNPC);
But it gives me error, thank you
Re : Help FCNPC NODE POINT -
Clad - 28.06.2014
What is the Error given ?
Re : Help FCNPC NODE POINT -
DarkZeroX - 28.06.2014
I tried to do this but its does not work ^ ^
PHP код:
Npc[0] = FCNPC_Create(NPC_CAMIONNEUR);
FCNPC_Spawn(Npc[0],186,2121.6575,-2274.1685,20.9575);
FCNPC_SetAngle(Npc[0],229.9218);
if(!FCNPC_IsNodeOpen(Node) && !FCNPC_OpenNode(Node))
{
printf("Error: Failed to open node %d from (scriptfiles/FCNPC/Nodes/NODES%d.DAT)", FCNPC_OpenNode(0), FCNPC_OpenNode(0));
return 0;
}
new node = 1;
FCNPC_GetNodePointPosition(node,X,Y,Z);
FCNPC_PlayNode(Npc[0],node,NODE_TYPE_PED);
printf("%f %f %f",X,Y,Z);[/code]