Page 1 of 1
Random scale in DECORATE
Posted: Tue Jan 08, 2013 6:24 am
by bleson
Is it possible to use
Random (min, max) in DECORATE?
Here's what I'm trying to do
Not surprisingly, this is what I get.
Any suggestions?
RE: Random values in DECORATE
Posted: Tue Jan 08, 2013 6:27 am
by Ivan
You do not give random to the Scale parameter. It's either one value or nothing.
RE: Random scale in DECORATE
Posted: Tue Jan 08, 2013 9:33 am
by bleson
I tried using A_SetScale, and that's apparently invalid?
Code: Select all
TNT1 A 0 A_SetScale (Random(1.0,4.0), Random(1.0,4.0))
RE: Random scale in DECORATE
Posted: Tue Jan 08, 2013 2:41 pm
by Qent
That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?
RE: Random scale in DECORATE
Posted: Tue Jan 08, 2013 2:58 pm
by bleson
Qent wrote:
That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?
If possible,
I want the actor to set itself to a random scale (from min to max) at the start of its spawning. The randomization should be so vast that each of the same monster in a map would have a different scale, even if just by a decimal.
Upon killing one, the game would use its scale number to generate a unique score.
RE: Random scale in DECORATE
Posted: Tue Jan 08, 2013 4:53 pm
by Ænima
For now, you'd have to create a bunch of separate actors. :/
RE: Random scale in DECORATE
Posted: Tue Jan 08, 2013 5:15 pm
by Qent
Yes, and use a RandomSpawner to spawn one at random.
RE: Random scale in DECORATE
Posted: Wed Jan 09, 2013 4:16 pm
by bleson
Alright, that's what I'll have to resort to. It should be worth the amount of copypasting (using inheritance of course).