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
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

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



December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar


You are not connected. Please login or register

Loading Formats

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

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

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

View user profile http://gtamodding.com

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