I try to use ACS_Execute (or the named variant, same problem) in a custom item and it gives this error: Unable to call action special ACS_Execute from constant declaration
I don't know why. I have the script in the map.
Class l_ret : CustomInventory
{
Default
{
Inventory.Amount 1;
Inventory.PickupMessage "Lab Returner";
Inventory.MaxAmount 1;
Inventory.Icon "RET1A0";
Inventory.AltHUDIcon "RET1A0";
Inventory.PickupSound "misc/p_pkup";
Inventory.UseSound "menu/activate";
-COUNTITEM
+INVENTORY.UNDROPPABLE
+INVENTORY.INVBAR
+INVENTORY.PERSISTENTPOWER
+INVENTORY.UNTOSSABLE
Radius 16;
Height 21;
Tag "Lab Returner";
}
States
{
Spawn:
RET1 A -1;
Stop;
Use:
TNT1 0 ACS_Execute(888, 0, 0, 0, 0);
Fail;
}
}
I don't know why. I have the script in the map.
Class l_ret : CustomInventory
{
Default
{
Inventory.Amount 1;
Inventory.PickupMessage "Lab Returner";
Inventory.MaxAmount 1;
Inventory.Icon "RET1A0";
Inventory.AltHUDIcon "RET1A0";
Inventory.PickupSound "misc/p_pkup";
Inventory.UseSound "menu/activate";
-COUNTITEM
+INVENTORY.UNDROPPABLE
+INVENTORY.INVBAR
+INVENTORY.PERSISTENTPOWER
+INVENTORY.UNTOSSABLE
Radius 16;
Height 21;
Tag "Lab Returner";
}
States
{
Spawn:
RET1 A -1;
Stop;
Use:
TNT1 0 ACS_Execute(888, 0, 0, 0, 0);
Fail;
}
}
Statistics: Posted by Guest — Fri Jan 31, 2025 2:30 pm