[Solved] Problems with a DECORATE Chainsaw

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Endie
Posts: 227
Joined: Thu Mar 16, 2017 7:34 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Somewhere in the void

[Solved] Problems with a DECORATE Chainsaw

Post by Endie »

I don't know if i'm doing anything wrong but, this:

Code: Select all

ACTOR Chainsaw2 : Chainsaw replaces Chainsaw
{
Weapon.SlotNumber 0
Weapon.BobStyle "Alpha"
Weapon.SlotNumber 0
Inventory.PickupMessage "Chainsaw! - Slot_0"
+Weapon.MeleeWeapon
TAG "THE GREAT COMMUNICATOR"
Obituary "%k > Chainsaw > %o"
States
{
Spawn:
	CSAW A -1
	Stop
Ready:
	SAWR ABCD 1 A_SetPitch(Pitch-0.5)
	Goto RealReady
RealReady:
	SAWA AB 1 A_WeaponReady
	Loop
Select:
	TNT1 A 1 A_Raise
	Loop
Deselect:
	SAWR DCBA 1 A_SetPitch(Pitch+0.5)
	TNT1 A 1 A_Lower
	Loop
Fire:
	SAWF ABCDE 2 A_Saw
	TNT1 AAAAA 1 A_SetPitch(Pitch+0.5)
	Goto Ready
	}
}
Just don't work, and i wanna know if there's something wrong there, thanks.
Last edited by Endie on Thu Oct 19, 2017 11:59 pm, edited 1 time in total.
Blue Shadow
Posts: 5032
Joined: Sun Nov 14, 2010 12:59 am

Re: Problems with a DECORATE Chainsaw

Post by Blue Shadow »

What's the problem exactly?
User avatar
Endie
Posts: 227
Joined: Thu Mar 16, 2017 7:34 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Somewhere in the void

Re: Problems with a DECORATE Chainsaw

Post by Endie »

Crash, forced close.
Blue Shadow
Posts: 5032
Joined: Sun Nov 14, 2010 12:59 am

Re: Problems with a DECORATE Chainsaw

Post by Blue Shadow »

I just tested the code - I didn't encounter any of that. Could you describe what happens in more detail? Like what you do to trigger the issue.
User avatar
Endie
Posts: 227
Joined: Thu Mar 16, 2017 7:34 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Somewhere in the void

Re: Problems with a DECORATE Chainsaw

Post by Endie »

Oh, nevermind. It's fixed, the problem wasn't with THIS code. Anyway, thanks

Return to “Scripting”