Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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