GTA: Modification Area
Would you like to react to this message? Create an account in a few clicks or log in to continue.
GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

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

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

» Mission Question
Loading Formats EmptyThu Oct 14, 2010 1:02 am by findmy012

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

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

» Bc7 Mod Help
Loading Formats EmptyFri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Loading Formats EmptyFri Dec 18, 2009 4:22 am by _CJ360_

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

» Hello/Guidance Request
Loading Formats EmptyMon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


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

Если ваш сайт содержит большую коллекцию 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 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar


You are not connected. Please login or register

Loading Formats

Go down  Message [Page 1 of 1]

1Loading Formats Empty Loading Formats Tue Feb 10, 2009 8:26 am

gtasbigfoot

gtasbigfoot
Admin

Description


There are many ways of loading a model; the following ways are the best ways:
This one is very quick and used most often:

Code:

0247: load_model #INFERNUS

:Label_0
0001: wait 0 ms
00d6: if
0248:  model #INFERNUS available
004d: jump_if_false @Label_0

The way which is mostly used in mission scripts:

Code:

0247: load_model #INFERNUS

:Label_0
00d6: if
8248:  not model #INFERNUS available
004d: jump_if_false @Label_1
0001: wait 0 ms
0002: jump @Label_0

:Label_1
//..............................

This way is most used in probably a external script:

Code:

:Label_0
00D6: if
8248:  not model #INFERNUS available
004D: jump_if_false @Label_1
0247: load_model #INFERNUS
0001: wait 0 ms
0002: jump @Label_0

:Label_1
//..............................

We are now using high level construction:

While..end



Code:

0247: load_model #INFERNUS

while 8248:  not model #INFERNUS available
0001: wait 0 ms
end

Break


Code:

0247: load_model #INFERNUS

while true
00D6: if
0248:  model #INFERNUS available
then
    Break
  end
  0001: wait 0 ms
end

Repeat..until



Code:

0001: wait 0 ms
        0247: load_model #INFERNUS
        repeat 
            0001: wait 0 ms
        until 0248:  model #INFERNUS available

If you're only loading one model for example the conditional opcode "if" can be omitted from the script:

Code:

0247: load_model #INFERNUS

:Label_0
0001: wait 0 ms
0248:  model #INFERNUS available
004d: jump_if_false @Label_0

0 - 1 condition 1..8 - 2 and more conditions (9 max) connected by logic operator AND.

If you're loading one then 9 models then, just restart it like this, for example:

Code:


:Label_0
0001: wait 0 ms
00d6: if and
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
004d: jump_if_false @Label_0
// it's reached it's limit so for the remaining models, restart it:
00d6: if and
0248:  model <model> available
0248:  model <model> available
0248:  model <model> available
004d: jump_if_false @Label_0

http://gtamodding.com

Back to top  Message [Page 1 of 1]

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