Image array

vilaemail

New Member
Reaction score
1
I am having trouble assigning my imported images/textures (.blps) to an array. I need that to do since I have over 100 imported pictures, so accessing them over array is a must. But when I create Image array I can not assign my imported pictures to it. Any suggestions?

Sincerely,
Filip.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, why not just save the path to the pictures, and when needed, create an image of them :D
 

vilaemail

New Member
Reaction score
1
I need to use imported texture for Cinematic - Fade function. It is rather stupid to make 100 if's that test like this.
If a=1 then cinematic - fade bla bla with texture imported1.blp
If a=2 then cinematic - fade bla bla with texture imported2.blp
If a=3 then cinematic - fade bla bla with texture imported3.blp
If a=4 then cinematic - fade bla bla with texture imported4.blp
...
If a=100 then cinematic - fade bla bla with texture imported100.blp

So I figure why not at start of a map do this.

somearray[1] = imported1.blp
somearray[2] = imported2.blp
somearray[3] = imported3.blp
somearray[4] = imported4.blp
...
somearray[100] = imported100.blp

so i can do this

cinematic - fade bla bla with texture somearray[a]

Is that possible?
 

vilaemail

New Member
Reaction score
1
I got it! Make string array and do this:

call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, somearray[a], 0, 0, 0, 0 )

Anyway thanks for help.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top