GTA: Modification Area

A website for the GTA modding scene


Display results as :

Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Sun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Thu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Thu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Thu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Sat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Fri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Fri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Tue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Mon Oct 12, 2009 6:45 am by Adler














----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))

----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))

Log in

I forgot my password

November 2017

Calendar Calendar

You are not connected. Please login or register

Special actors & model loading

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Special actors & model loading on Tue Feb 10, 2009 12:43 am

Special Actors

Special actors in San Andreas, uses slots 1 - 10(models 290 - 299).
Loading a special actor is done the following way:


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:


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:


00d6: if
823D:  not  special_actor # loaded
004d: jump_if_false @Label2
0001: wait 0 ms
0002: jump @Label


When creating the actor


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:


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

View user profile

2 Re: Special actors & model loading on Wed Feb 11, 2009 1:41 am

I must say that when using

xxxx: special_actor # loaded

Seemed to crash my game, hover, using



Seemed to work

View user profile

3 Re: Special actors & model loading on Wed Feb 11, 2009 2:08 am

I don't know the problem of this, the opcode is made to load special actors. The other can be used as well, though.

You did not do it like this, did you?:


023D: special_actor #SPECIAL01 loaded

You did do it using the slot you loaded it by?


023D: special_actor 1 loaded

For example.


023C: load_special_actor 'ryo' as 1 // models 290-299

00D6: if
823D:  NOT  special_actor 1 loaded
004D: jump_if_false @Noname3
0001: wait 0 ms
0002: jump @Noname2


View user profile

Sponsored content

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum