Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Use Random Skin in WED #85393
08/10/06 08:54
08/10/06 08:54
Joined: Jun 2006
Posts: 18
A
anam Offline OP
Newbie
anam  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 18
Hello,

This is a newbie question.

I have a model (mdl) and I have set 4 skins for that model in MED. Now I have placed 10 instance of that model in my world using WED. Now everytime I build the level, WED chooses a random skin (it seems) and puts that skin on all the 10 models (so all 10 models show the same skin in level). But I want random skin for all my models i.e. at every build the 10 instances of that model in the world will be chosen randomly from those 4 skins so that they are different and random (and not all the same like it works currently).

How do I do that?

Thanks

Re: Use Random Skin in WED [Re: anam] #85394
08/10/06 08:59
08/10/06 08:59
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
action random_skin() { my.skin = 1 + random(4); }

Re: Use Random Skin in WED [Re: jcl] #85395
08/10/06 09:12
08/10/06 09:12
Joined: Jun 2006
Posts: 18
A
anam Offline OP
Newbie
anam  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 18
Worksss!! Thanksss!!!


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1