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

Deprecate GetPlayerObjectTarget #34

Closed
adib-yg opened this issue Jan 12, 2024 · 1 comment
Closed

Deprecate GetPlayerObjectTarget #34

adib-yg opened this issue Jan 12, 2024 · 1 comment

Comments

@adib-yg
Copy link
Member

adib-yg commented Jan 12, 2024

Issue

GetPlayerObjectTarget should be deprecated because GetObjectTarget is deprecated.

native Float:GetPlayerObjectTarget(playerid, objectid, &Float:targetX = 0.0, &Float:targetY = 0.0, &Float:targetZ = 0.0);

omp-stdlib/omp_object.inc

Lines 1484 to 1485 in 085dfb1

#pragma deprecated Use `GetObjectMovingTargetPos`
native bool:GetObjectTarget(objectid, &Float:targetX = 0.0, &Float:targetY = 0.0, &Float:targetZ = 0.0) = GetObjectMovingTargetPos;

Suggestion

#pragma deprecated Use `GetPlayerObjectMovingTargetPos`
native Float:GetPlayerObjectTarget(playerid, objectid, &Float:targetX = 0.0, &Float:targetY = 0.0, &Float:targetZ = 0.0); 
@NexiusTailer
Copy link
Contributor

Probably not relevant anymore since GetObjectTarget now is not deprecated

@adib-yg adib-yg closed this as completed Aug 30, 2024
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