Special Actors
Special actors in San Andreas, uses slots 1 - 10(models 290 - 299).
Loading a special actor is done the following way:
- Code:
023C: load_special_actor 'SWEET' as 1 // models 290-299
In the main.scm slots 1-5, and 10 are used, however all of them can be used still.
To load your own actor(s) is very simple, put the model and texture of you're actor first into the gta3.img file.
Say for example the model name is "ryo" then you load load the special actor like this:
- Code:
023C: load_special_actor 'ryo' as # // models 290-299
# of course, can be replaced with numbers 1-10
After you have loaded the model then check if it is available like this:
- Code:
:Label
00d6: if
823D: not special_actor # loaded
004d: jump_if_false @Label2
0001: wait 0 ms
0002: jump @Label
:Label2
//........................
When creating the actor
- Code:
009a: 0@ = create_actor_pedtype 4 model (model ID) at 0.0 0.0 0.0
For this you must use the models ID, or name, for example if you loaded it as slot 1, the ID would be 290(#special01), if it was slot 10 you used, then the model ID would be 299(#special10).
When the model is not needed anymore it can be released from the game engine using:
- Code:
0296: unload_special_actor #
Relating to replays
If you press the reply button(F1) and there is a special actor around, the special model, will not show up. (Reply's do not support it, just like the Jetpack would not visible). The model gets replaced with male01, who is always loaded, and the first in the game engine.
Last edited by Gtasbigfoot on Wed Feb 11, 2009 2:17 am; edited 1 time in total