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

Add offset for FCNPC_AimAtPlayer #28

Closed
zeelorenc opened this issue Dec 1, 2016 · 0 comments
Closed

Add offset for FCNPC_AimAtPlayer #28

zeelorenc opened this issue Dec 1, 2016 · 0 comments

Comments

@zeelorenc
Copy link

zeelorenc commented Dec 1, 2016

If you place an NPC behind a counter object and make him shoot at you, he will shoot the counter instead. Needs a quick & easy fix imo for cleaner code

What I suggest is adding offset X, Y, Z to FCNPC_AimAtPlayer so NPC can shoot/attack at the head if desired.

e.g

FCNPC_AimAtPlayer(npcid, playerid, bool:shoot = false, shoot_delay = -1, bool:setangle = true, Float: offsetX = 0.0, Float: offsetY = 0.0, Float: offsetZ = 0.0);

// example, head shots
FCNPC_AimAtPlayer(npcid, playerid, true, -1, true, 0.0, 0.0, 0.5);

I would do this but I need to remember how to open a C++ project (been a while) 😆 😆 😆

ziggi added a commit that referenced this issue Dec 15, 2016
@ziggi ziggi closed this as completed Dec 15, 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

2 participants