#1 GTA Modding » Coding audio, how is that done? » 22-05-2011 20:00

Sabudum
Replies: 1

All right, so i want to play an audio in game, in Vice City, through scm coding, for instance, i wanna play the camera sound when i get close to some point, or play some church bells near the church, that is already implemented in the game, but, how can i do that through scm coding?

i know that there are two opcodes for this:

018D: 6@ = create_sound 0 at -923.4324 -333.2397 14.3816
018C: play_sound 1 at 0.0 0.0 0.0

But how to use them, and how can i know the sound ID?

If someone can help me with this, i'd be much appreciated, thanks!

#2 GTA Modding » How to activate car hydraulics and such via code » 29-04-2011 17:33

Sabudum
Replies: 4

Does anyone know how to activate car hydraulics and such, as the forklift lifter or the dumper, via scm code?

#3 Re: GTA Modding » Sanny Builder / CLEO discussion » 19-04-2011 01:48

Uhm, hello everybody, i've been trying to make a loop code that continuously and indefinitely stores the player's positions to DIFFERENT variables, i've come up with a simple loop like this:

:OTHERYOU_02
wait 10000
00A0: store_actor $PLAYER_ACTOR position_to $550 $651 $652
if
80DF:   not actor $PLAYER_ACTOR driving
jf @DRIVING_02
jump @OTHERYOU_02

The question is: is there a way to and how do i change the variables names during a loop? the variables would be $550 $651 $652 in this case, i want to change their names upon each loop iteration, so the new player position will be stored into different variables, each 10 seconds, this way, i can duplicate the player's actions, any light to be shed here?

Board footer

Powered by FluxBB