[DECORATE] SC_GetFloat: Bad numeric constant

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
LK873
Posts: 274
Joined: Mon Aug 30, 2004 10:54 am
Location: Ontario, Canada

[DECORATE] SC_GetFloat: Bad numeric constant

Post by LK873 »

SC_GetFloat: Bad numeric constant
"Powerup.Duration".
Script DECORATE, Line 11
This DECORATE seems to be crashing both ZDoom 96x and GZDoom

Code: Select all

ACTOR PSpeed : PowerupGiver 15000
{
	+AUTOACTIVATE
	+FLOATBOB
	+VISIBILITYPULSE
	
	Inventory.PickupMessage "Speed!"
	Inventory.MaxAmount 0
	
	Powerup.Color Orange
	Powerup.Duration 2000
	Powerup.Type Speed
	
	RenderStyle Translucent
	
	States
	{
		Spawn:
			PFST A -1 BRIGHT
	}
}
It looks right to me... Any ideas?
User avatar
Froon
Posts: 116
Joined: Tue Aug 30, 2005 8:42 pm

Post by Froon »

Powerup.Color requires an alpha value as well as the colour, zdoom is assuming "Powerup.Duration" is the numerical value.
Try "Powerup.Color Orange, 0.6" or something.
LK873
Posts: 274
Joined: Mon Aug 30, 2004 10:54 am
Location: Ontario, Canada

Post by LK873 »

Yeah that was it, thanks! :D
User avatar
Froon
Posts: 116
Joined: Tue Aug 30, 2005 8:42 pm

Post by Froon »

No worries.
Locked

Return to “Editing (Archive)”