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

Weapon Accuracy #23

Closed
ziggi opened this issue Aug 31, 2016 · 0 comments
Closed

Weapon Accuracy #23

ziggi opened this issue Aug 31, 2016 · 0 comments

Comments

@ziggi
Copy link
Owner

ziggi commented Aug 31, 2016

http://forum.sa-mp.com/showpost.php?p=3760346&postcount=2874

native FCNPC_SetWeaponAccuracy(npcid, weaponid, Float:accuracy);
native Float:FCNPC_GetWeaponAccuracy(npcid, weaponid);
native FCNPC_SetWeaponInfo(npcid, weaponid, reload_time = -1, shoot_time = -1, clip_size = -1, Float:accuracy = 1.0);
native FCNPC_GetWeaponInfo(npcid, weaponid, &reload_time = -1, &shoot_time = -1, &clip_size = -1, &Float:accuracy = 1.0);
native FCNPC_SetWeaponDefaultInfo(weaponid, reload_time = -1, shoot_time = -1, clip_size = -1, Float:accuracy = 1.0);
native FCNPC_GetWeaponDefaultInfo(weaponid, &reload_time = -1, &shoot_time = -1, &clip_size = -1, &Float:accuracy = 1.0);

//Float:accuracy
//Is a percentage value
//Possible values range from 0.0 to 1.0 (will never hit to will always hit)
//Defaults to 1.0 (will always hit)
//Example: 0.8 (will hit 80% of the time)
ziggi added a commit that referenced this issue Sep 13, 2016
- Fix for FCNPC_GetWeaponInfo
@ziggi ziggi closed this as completed Sep 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant