Help FCNPC NODE POINT
#1

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
Reply
#2

What is the Error given ?
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)