06.03.2015, 08:50
from now old loops won't work ?
Test Results:
This Works - InternalToStreamerID(playerid, GetPlayerCameraTargetObject(playerid)); This Doesn't - InternalToStreamerID(playerid, GetPlayerSurfingObjectID(playerid)); |
GetPlayerCameraTargetObject should return 0 too for a player object. I don't know what mistake you did that it returned something.
Let's simplify this test: we are basically arguing about global objects functions (those two) working on player objects. Just test another one: CreatePlayerObject (with moving too, for the second function), GetPlayerCameraTargetObject and GetPlayerSurfingObjectID, both on that created player object ID. Both should return 0 because they work only on global objects (CreateObject) (as I claim), not on player objects too (as you claim to). You claim that they work, so they should return the ID of the player object instead of 0. I want you to see why we need a player object version for those functions. I would test too, but I already know the behaviour of these functions and, also, my laptop is in repairing process. |
Here is the results for CameraTargetObject:
(1st 2 #s are from global functions, 2nd 2 #s are using my define. Notice that mine are the correct models and the global return the wrongs object id's model.) EDIT: forgot to mention that every single object there is dynamic. |