-
Notifications
You must be signed in to change notification settings - Fork 100
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
NPC Component (WIP) #916
base: master
Are you sure you want to change the base?
NPC Component (WIP) #916
Conversation
Good job! |
error in native? |
Edited. |
The first tests look interesting)) |
I don't think NPCs are supposed to connect with ipv6 as your logs show |
I removed the spawn, the server is working, the npcs have connected, but are physically absent) logs looks like good.
later )
ipv6 turns into a localhost after the first player connects, hm..)
|
I tried to spawn NPCs 10 seconds after connecting - the server also crashed |
One more bug, in OnNPCConnect(npcid) |
As we talked in discord, regarding the crash issue, it should be fixed now. @eakwarp was kicking them and kicking an NPC wasn't implemented since it was on network level. Also removing/destroying NPCs on connect callbacks would result into crashes as well, which is now fixed too. Also callback names are updated |
what about new builds?) |
Some natives from FCNPC for Mysy
|
Info
This PR is made to follow progress of NPC component development
Also creating this PR allows our build CIs to run so people can grab server builds from this PR to test NPCs
(Note: Some stuff are taken from this branch https://github.com/openmultiplayer/open.mp/tree/Alasnkz/npc like NPC network class and some move calculations)
Current Pawn scripting API
Natives:
Callbacks:
Videos:
Short video of basic usage:
https://cdn.discordapp.com/attachments/966398440051445790/1229681168878669895/ompnpc.mp4