Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, clint000, 1 invisible), 5,158 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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,089
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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