Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move path functions #6

Closed
ziggi opened this issue Mar 18, 2016 · 2 comments
Closed

Move path functions #6

ziggi opened this issue Mar 18, 2016 · 2 comments

Comments

@ziggi
Copy link
Owner

ziggi commented Mar 18, 2016

http://forum.sa-mp.com/showthread.php?p=3673022#post3673022

forward FCNPC_OnFinishMovePath(npcid, pathid);
forward FCNPC_OnFinishMovePathPoint(npcid, pathid, pointid);

native FCNPC_CreateMovePath();
native FCNPC_DestroyMovePath(pathid);
native FCNPC_IsValidMovePath(pathid);
native FCNPC_AddPointToPath(pathid, Float:x, Float:y, Float:z);
native FCNPC_AddPointsToPath(pathid, Float:points[][3], const size = sizeof(points));
native FCNPC_RemovePointFromPath(pathid, pointid);
native FCNPC_IsValidMovePoint(pathid, pointid);
native FCNPC_GetMovePoint(pathid, pointid, &Float:x, &Float:y, &Float:z);
native FCNPC_GetNumberMovePoint(pathid);
native FCNPC_GoByMovePath(npcid, pathid, type = MOVE_TYPE_AUTO, Float:speed = MOVE_SPEED_AUTO, bool:UseMapAndreas = false, Float:radius = 0.0, bool:setangle = true);
@ziggi ziggi added this to the FCNPC v1.1 milestone Mar 18, 2016
@ipsBruno
Copy link

Great work, thak you Ziggi!

@ziggi ziggi removed this from the FCNPC v2.0 milestone Sep 28, 2016
@ziggi ziggi changed the title ConcatMovement functions Move path functions Sep 28, 2016
ziggi added a commit that referenced this issue Sep 28, 2016
ziggi added a commit that referenced this issue Oct 13, 2016
ziggi added a commit that referenced this issue Oct 13, 2016
ziggi added a commit that referenced this issue Oct 13, 2016
- FCNPC_OnFinishMovePath
- FCNPC_OnFinishMovePathPoint
@ziggi ziggi closed this as completed Oct 13, 2016
@PixellUp
Copy link

Thanks for this amazing update. Previously I use FCNPC_OnReachDestination, but now with those functions, I can easily make the same, but more efficient.

@iMarllun iMarllun mentioned this issue May 23, 2020
@Mancek Mancek mentioned this issue Jun 22, 2020
@Hamiiziii Hamiiziii mentioned this issue Jul 25, 2020
This was referenced Apr 2, 2021
@kolor4do kolor4do mentioned this issue Dec 9, 2021
@savvin-dev savvin-dev mentioned this issue Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants