


I wanted to give a try to the lambda functions (or anonymous functions are they're described on the wiki here : https://zdoom.org/wiki/Actor_states#Anonymous_functions )
Yet, simply put, even with the simpleeeest instructions, my game isn't working. It won't boot up and crash on startup.
Here is the codo :
actor Parent
{
radius 25 height 40
+nogravity +SOLID +SHOOTABLE
HEALTH 35 SCALE 2.5
states
{
Spawn:
GYRO ABCD 2
loop
Death:
NAPA D 35
{
A_ChangeFlag("NOGRAVITY", 1);
A_PlaySoundEx("weapon/sparkshock", "Weapon");
}
stop
}
}
The error I get is :
"Script error, "mymod.pk3:decorate" line 15:
Sprite names must be exactly 4 characters"
Heck, even copy-pasting the example from the link above gives the same errror... so I guess something is wrong with me or my tools.
I use SLADE3 to edit my code and my game runs on the Zandronum 3.0 engine, if that relates to the problem '^'
Sooo : 1) can this be fixed so I can play my game?
2) If it's unfixable or unsupported by Zandro engine, is there another way to do it? The feature I'm interested into from these anonymous functions, is being able to cast several Action functions on the same frame.