-
Notifications
You must be signed in to change notification settings - Fork 434
NPC Component Documentation #1137
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
base: master
Are you sure you want to change the base?
Conversation
|
To any team member: don't merge it yet |
|
|
|
Missing manual review by someone and nodes documentation |
- better comments in some things
… and NPC_SetSpecialAction documentation
…nd NPC_SetSkin documentation thanks eggy
|
TODO: |
- Add correct seat maps
|
thanks @dockfries |
|
Ready to review: NPC_AimAt.md In case testing is needed, the gamemode is here with those functions implemented: |
|
Ready to review: NPC_AddPointToPath.md In case testing is needed, the gamemode with all these functions implemented is here: |
|
Ready to review: NPC_GetAmmo.md In case testing is needed, the gamemode with all these functions implemented is here: |
…tSurfingPlayerObject, GetSurfingVehicle, GetVehicle, GetVehicleGearState
NPC_SetSurfingOffset.md added: NPC_SetSurfingOffsets.md NPC_IsMovingToPlayer.md NPC_IsSpawned.md NPC_SetWeaponSkillLevel.md NPC_GetPlayerAimingAt.md NPC_GetPlayerMovingTo.md NPC_GetSkin.md NPC_GetVelocity.md NPC_GetWeaponSkillLevel.md NPC_Kill.md NPC_SetVelocity.md NPC_SetWeaponState.md OnNPCFinishMovePathPoint.md
|
last commit |
dunno where's the error, works fine here, can you tell me what are the errors? |
|
Sorry, I meant that the content of the examples sections of these two markdown files was incorrect, not that there was an error in the gamemode code. NPC_IsSpawned should use "/checkspawned" instead of "/checkshooting". |
This PR adds documentation for the NPC component.
The open.mp branch for beta testing can be found here:
openmultiplayer/open.mp#916
Bugs while testing? Report them here: openmultiplayer/open.mp#1134
A test gamemode built using the wiki snippets is available here:
https://github.com/itsneufox/NPC-bare-test-omp-gamemode
The goal is for the NPCs wiki code to be fully reusable so anyone can copy and paste it on the gamemode with minimal effort
Core / Lifecycle
Position / Rotation / World
Movement
Appearance
Health / Armour / Invulnerability
Weapons / Combat
Vehicle
Animations
Playback / Records
Surfing
Paths
Nodes
Callbacks / Events