Comments (8)
I am working with FCNPC for my bot system, nonetheless, I have an issue with bot moving.
When the bot target is higher than the bot, the bot is floating in the air. How can I fixe this bug?
Screenshots?
I saw there is a possibility to use MapAndreas, I set the parameters to true, but nothing change.
MapAndreas plugin loaded successfully?
And the last point: Do you plan to make a dcumentation ?
No, I am not interested in this.
from fcnpc.
Hum my bad, I didn't see I have to load MapAndreas.
The default plugin should work? http://forum.sa-mp.com/showthread.php?t=120013
Thank you for your answer :)
from fcnpc.
Use this: http://forum.sa-mp.com/showpost.php?p=3130004&postcount=153
from fcnpc.
I try with the plugin, but the problem is still here. SOmetimes, the bot is under the ground, sometimes it is in the air.
On this picture : http://img11.hostingpics.net/pics/440427samp010.png , the bot is nearly in the ground and this one http://img11.hostingpics.net/pics/859550samp007.png the bot is under the ground (it is shooting at me)
from fcnpc.
Show your code.
from fcnpc.
Loading MapAndras:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL); FCNPC_InitMapAndreas(MapAndreas_GetAddress());
Bot management:
if (Bot_GetDistanceFromPlayer(npcid, playerid) > 30.0)
{
#if DEV_MODE == 1
printf("NPC(%d) follow Player(%d)", npcid, playerid);
#endif
if (FCNPC_IsAiming(npcid))
FCNPC_StopAim(npcid);
if (!FCNPC_IsMoving(npcid))
FCNPC_GoToPlayer(npcid, playerid, MOVE_TYPE_AUTO, MOVE_SPEED_AUTO, true);
}
else {
#if DEV_MODE == 1
printf("NPC(%d) attacks Player(%d)", npcid, playerid);
#endif
if (Bot_GetDistanceFromPlayer(npcid, playerid) < 15.0)
FCNPC_Stop(npcid);
if (!FCNPC_IsAiming(npcid))
FCNPC_AimAtPlayer(npcid, playerid, true);
}
from fcnpc.
FCNPC_InitMapAndreas returns 0 or 1?
from fcnpc.
It returns 1.
Hum, after recompilation, there is no bug. Just one thing, sometimes, the bot pass trough the bulding to go to the target.
Thanks for your help
from fcnpc.
Related Issues (20)
- Signal 11 (Segmentation fault), address is 94 from 8096232 HOT 1
- Linux server Error HOT 1
- Help Compiling HOT 1
- Can you help fix crash fcnpc 0.3dl , Please help me HOT 5
- how to fix it? HOT 1
- Linux Server Crash HOT 7
- Issues when running on Linux HOT 3
- Open Mp HOT 4
- Crash on Linux Server HOT 14
- FCNPC_OnCreate and FCNPC_OnSpawn Callback Problem HOT 4
- Callback Problems HOT 1
- Need Some Information About Some Natives HOT 3
- Correct Delta Calculations
- Signal 11 (Segmentation fault), address is 351 from f79570e3 HOT 2
- Signal 11 (Segmentation fault) HOT 2
- FCNPCs can't drive trailers
- The position of the train cars is not returned if FCNPC drive train.
- FCNPC_EnterVehicle. NPC should not check map.
- FCNPC_LoadPlayingPlayback conflicts with temporary recordings loaded by FCNPC_StartPlayingPlayback
- FCNPC Not created HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcnpc.