View Full Version : Randomizing Textures?
08-07-2003, 08:45 PM
I have an idea for a cool thing for a mod that I'm making up. I was wondering if there was anyway to asign a bunch of textures to an object and everytime it is spawned or created in the game the computer will randomly select of of them.
Can this be done? Thanks.
08-09-2003, 04:37 PM
No one knows? Maybe I'll have to go research on this one.
08-09-2003, 07:45 PM
You can set the textures on a mesh/staticmesh through the skins property. If you had the object randomly assign to that array I think it would do what you wanted.
08-10-2003, 03:36 AM
something like this (pseudo code-ish)
simulated function PostBeginPlay()
Rnum=Rand(4);//random num. generator
every time this actor would be spawned it would spawn with a different, random skin.
08-10-2003, 05:20 PM
Thanks, thats just what I wanted. I'll fool around a little with it and see what happens.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.