TradeMark wrote:Mind you paste the code you used? Will be useful in my test map when i add ped remaps.
Sure, it's the basic one from documentation...
Code: Select all
CHAR_DATA charname = (127.0,127.0,2.0) -1 090 CRIMINAL_TYPE1
Default characters are always classed as gang characters. The above, with remap -1, will show this character having a Zaibatsu outfit (yes - remap 8 is ALSO the Zaibatsu outfit).
If you then use a command like this...
Code: Select all
SET_CHAR_GRAPHIC_TYPE (charname,EMERG_GRAPHIC,-1)
...the same guy will now show up as a SWAT guy and also be the correct "size" (police and normal peds are physically smaller in size than gang peds). Also works on players.
If you then switch to a "dummy" graphic...
Code: Select all
SET_CHAR_GRAPHIC_TYPE (charname,DUMMY_GRAPHIC,-1)
...he will show up as a road block tank guy in appearance (dark red shirt, green sleeves) and is also ped sized. Again, this works on players too.
There you have it, pretty simple. But to summarise, created characters (and players) are defaulted to gang graphic type. You have to use the SET_CHAR_GRAPHIC_TYPE for them to show up as anything else for their default values if you use -1 as the remap.
Hit me up if you need help with more stuff...
Edit: You can look up my
tutorials on characters on Ben's website for reference. There is another one on
character AI too if that will help also.