If you want your script to run continuously, you have insert a loop. The example above shows you a script that ends immediately. If needed, through different scripts you can end your script with opcode 0459.Ġ3A4: name_thread 'SCRIPTA' :simple_script_start // Insert your code here A maximum of 7 characters are allowed for the name. Your script can have an optional name with which the game can identify by using opcode 03A4. Check out the Code Snippets category for some code that you can use. More complex code can be placed there instead, including spawning a ped, creating a clothes pickup, or creating a moving gate. Your script can include a series of opcodes like adding cash to you or setting your wanted level:Ġ10D: set_player $PLAYER_CHAR wanted_level_to 6 That is where the MAIN section ends and the first mission begins. Next create your script by inserting it in the appropriate place. Find:Ġ04F: create_thread is an arbitrary but unique name for a label. Now we need a command to start your first script by using opcode 004F (or create_thread command). That is the file you will be working with. The program will create the main.txt file in the same directory. Find and open the main.scm file for decompiling. If you don't have a decompiled file, go to Sanny Builder and press F5. First make sure you are working with a decompiled main.scm file. Prior to the advent of CLEO, this section was one of the first steps in understanding how to create scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |