Posts: 949
Threads: 153
Joined: Jan 2012
Reputation:
0
19.09.2012, 00:43
(
Last edited by 2KY; 19/09/2012 at 02:16 AM.
)
let's try this again, since it's a discussion..
I've noticed something different that was added - objects of every single skin id! Give it a try! Open up the SA:MP Map Editor, and create a random object, then change the object ID to 14. It's the black guy skin from GTA! And there's a ton more. I never noticed them before, has anyone else?
Posts: 949
Threads: 153
Joined: Jan 2012
Reputation:
0
Those wiki links have nothing to do with what I'm talking about..
Posts: 172
Threads: 9
Joined: Jul 2012
Reputation:
0
Y_Less:
He's talking about the object ids that look like the skin models.
They are not documented in the wiki but most "scripters and mappers" have already discovered them by now.
Y2K:
Y_Less is partially correct, the object ids to the vehicles and skins are the same as their model ids, just I forget what the weapon ids were BUT they're there.
Posts: 15,941
Threads: 0
Joined: Jun 2008
I don't think so, but that could have changed so test it anyway.
Posts: 2,557
Threads: 77
Joined: Nov 2010
Reputation:
0
That's not possible for ped models/vehicle models due to the special data they hold, like vehicle health, ped bones, ped health, etc.
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
Nope using CreateObject does not work, tested. I'm curious though as to why you can add that object in the map editor but not in SAMP. Is this a scripted limitation or an engine limitation (like stewie said above)? It'd be neat if it'd be possible though.
Posts: 1,177
Threads: 27
Joined: Sep 2011
Reputation:
0
I tried this and the collision is there but it's invisible.
Posts: 717
Threads: 11
Joined: Jul 2008
Reputation:
0
Assuming ped and vehicle models are stored in the gta3 archive like anything else - they probably have extra files that most objects do not share. I obviously couldn't know for sure but if I had to code the CreateObject native - I'd of coded it the easiest way - which is assuming that every object has the same data and no more. So if you attempted to load a ped model that has more data than an object model - CreateObject would have nothing to detect this and would blatantly load garbage and expect that garbage to be proper data for use.
At least the symptoms remind me to how my Game Engine sometimes handles things. I of course can only assume here, only people who know how CreateObject exactly works could say what could of gone sideways here.
Regards.
Posts: 758
Threads: 7
Joined: Mar 2011
Reputation:
0
GTA SA just has a giant list of models. That explains why you get a ped when you use id 14 in the Map Editor, because it's in the same model list as all the other objects.
The list is roughly:
0 to 300 = Ped models;
321 to 371 = Weapon models;
400 to 611 = Vehicle models;
~615 to ~18000 = Other object models.
Never noticed this? The SA-MP Map Editor just shows the model, that's why it's capable of showing ped models. But when you try spawning them in SA-MP itself, it can't be done. They have extra data which can't be read by CreateObject. (Like bones from peds, damage models from vehicles)