Allows overlays to be set and destroyed on actors. Useful if someone makes remote controlled things such as flying attack robots with guns that can be controlled until destroyed.
Summon D in console. It will display the rocket launcher sprites on its own, switching between frames A and B.
Code: Select all
Actor D
{
+NOINTERACTION
States
{
Spawn:
PLAY A 15
PLAY A 16
{
Thing_ChangeTID(0,20000);
ChangeCamera(20000,1,0);
A_Overlay(2,"Test");
A_OverlayOffset(2,0,32);
}
PLAY A 17
{
if (!A_Overlay(2,"Null",true))
{
A_PrintBold("This one's still rollin!");
A_SetTics(17*9);
}
else
{ A_PrintBold("That ain't good."); }
}
PLAY A 17
PLAY A 0 ChangeCamera(0,1,0)
Stop
Test:
MISG A 17 A_PrintBold("10")
MISG B 17 A_PrintBold("9")
MISG A 17 A_PrintBold("8")
MISG B 17 A_PrintBold("7")
MISG A 17 A_PrintBold("6")
MISG B 17 A_PrintBold("5")
MISG A 17 A_PrintBold("4")
MISG B 17 A_PrintBold("3")
MISG A 17 A_PrintBold("2")
MISG B 17 A_PrintBold("1")
Stop
}
}