I want an inventry item to catch a drop call but not actually drop (it's a master that can't be dropped but when dropped it will drop a child item)
I thought SpecialDropAction would do that, but it never fires:
Code: Select all
class invTest : inventory
{
default{+inventory.invbar;inventory.icon "UNKNA0";}
states{spawn: UNKN A -1; stop;}
override bool SpecialDropAction (Actor dropper)
{
console.printf(level.time..": "..GetCharacterName()..": Dropped");
return true;
}
}
Do I need to turn on a flag somewhere to get that to work or what? Or is there another way to do what I want?
I want an inventry item to catch a drop call but not actually drop (it's a master that can't be dropped but when dropped it will drop a child item)
I thought SpecialDropAction would do that, but it never fires:
[code]
class invTest : inventory
{
default{+inventory.invbar;inventory.icon "UNKNA0";}
states{spawn: UNKN A -1; stop;}
override bool SpecialDropAction (Actor dropper)
{
console.printf(level.time..": "..GetCharacterName()..": Dropped");
return true;
}
}
[/code]
Do I need to turn on a flag somewhere to get that to work or what? Or is there another way to do what I want?