#1 Re: GTA Modding » How do you set actors positions? » 25-08-2010 11:45

Thanks!
Now it doesnt crash smile
but it doesnt work, the actor aint there

:DEMOTEXT
03A4: name_thread "test"
wait 1000

:DEMOTEXT_1
wait 0
if
0256: player $PLAYER_CHAR defined
0247: load_model #WMOMIB
038B: load_requested_models

:MODEL_LOAD
00D6: if
8248:   not model #WMOMIB available
004D: jump_if_false @MODEL_SPAWN
0001: wait 0 ms
0002: jump @MODEL_LOAD

:MODEL_SPAWN
10@ = Actor.Create(CIVFEMALE, #WMOMIB, -2552.9502, -300.3968, 26.1107)

//Here you do what you want to do with the actor.

0249: release_model #WMOMIB
0A93: end_custom_thread

#2 Re: GTA Modding » How do you set actors positions? » 25-08-2010 11:18

{$CLEO .cs}
:DEMOTEXT
03A4: name_thread "test"
wait 1000

:DEMOTEXT_1
wait 0
if
0256: player $PLAYER_CHAR defined
009A: 1@ = create_actor_pedtype 4 model #WMOMIB at -2552.9502 -300.3968 26.1107
009A: 2@ = create_actor_pedtype 4 model #WMOMIB at -2553.5691 -304.8354 26.1374
009A: 3@ = create_actor_pedtype 4 model #WMOMIB at -2560.7734 -297.5293 29.4281
009A: 4@ = create_actor_pedtype 4 model #WMOMIB at -2557.0779 -297.3231 29.4281
009A: 5@ = create_actor_pedtype 4 model #WMOMIB at -2556.8064 -308.1158 29.4281
009A: 6@ = create_actor_pedtype 4 model #WMOMIB at -2560.6057 -308.1154 29.4281
009A: 7@ = create_actor_pedtype 4 model #WMOMIB at -2625.1453 -308.5279 22.3376
009A: 8@ = create_actor_pedtype 4 model #WMOMIB at -2625.1367 -302.4276 22.2090
009A: 9@ = create_actor_pedtype 4 model #WMOMIB at -2620.9072 -293.5685 22.1984
009A: 10@ = create_actor_pedtype 4 model #WMOMIB at -2613.5566 -259.9180 19.1717
009A: 11@ = create_actor_pedtype 4 model #WMOMIB at -2621.0857 -256.3839 18.8610
009A: 12@ = create_actor_pedtype 4 model #WMOMIB at -2630.8018 -242.9615 18.3560
009A: 13@ = create_actor_pedtype 4 model #WMOMIB at -2627.9829 -234.8933 18.4085
0A93: end_custom_thread

Wtf it crashes my gta sa >.>

#3 Re: GTA Modding » How do you set actors positions? » 24-08-2010 23:17

{$CLEO .cs}
:DEMOTEXT
03A4: name_thread "test"
wait 1000

:DEMOTEXT_1
wait 0
if
0256: player $PLAYER_CHAR defined
009A: 1@ = create_actor_pedtype 4 model #WMOMIB at -2552.9502,-300.3968,26.1107
009A: 2@ = create_actor_pedtype 4 model #WMOMIB at -2553.5691,-304.8354,26.1374
009A: 3@ = create_actor_pedtype 4 model #WMOMIB at -2560.7734,-297.5293,29.4281
009A: 4@ = create_actor_pedtype 4 model #WMOMIB at -2557.0779,-297.3231,29.4281
009A: 5@ = create_actor_pedtype 4 model #WMOMIB at -2556.8064,-308.1158,29.4281
009A: 6@ = create_actor_pedtype 4 model #WMOMIB at -2560.6057,-308.1154,29.4281
009A: 7@ = create_actor_pedtype 4 model #WMOMIB at -2625.1453,-308.5279,22.3376
009A: 8@ = create_actor_pedtype 4 model #WMOMIB at -2625.1367,-302.4276,22.2090
009A: 9@ = create_actor_pedtype 4 model #WMOMIB at -2620.9072,-293.5685,22.1984
009A: 10@ = create_actor_pedtype 4 model #WMOMIB at -2613.5566,-259.9180,19.1717
009A: 11@ = create_actor_pedtype 4 model #WMOMIB at -2621.0857,-256.3839,18.8610
009A: 12@ = create_actor_pedtype 4 model #WMOMIB at -2630.8018,-242.9615,18.3560
009A: 13@ = create_actor_pedtype 4 model #WMOMIB at -2627.9829,-234.8933,18.4085
0A93: end_custom_thread

Not enough params error sad

#4 GTA Modding » How do you set actors positions? » 24-08-2010 19:31

braduz
Replies: 7

So far:

{$CLEO .cs}
:DEMOTEXT
03A4: name_thread "test"
wait 1000

:DEMOTEXT_1
wait 0
if
0256: player $PLAYER_CHAR defined
0129: 1@ = create_actor_pedtype 23 model #WMOMIB
0129: 2@ = create_actor_pedtype 23 model #WMOMIB
0129: 3@ = create_actor_pedtype 23 model #WMOMIB
0129: 4@ = create_actor_pedtype 23 model #WMOMIB
0129: 5@ = create_actor_pedtype 23 model #WMOMIB
0A93: end_custom_thread

But I need to set their positions

#5 GTA Modding » Annoying load model » 22-08-2010 00:45

braduz
Replies: 1

023C: load_special_actor 'SWEET' as 1
I dont know the code to load Normal peds, one like skin id 165
if i try to change "SWEET" to a ped charicter it just crashes my game

Board footer

Powered by FluxBB