I didn't test but I believe you will need to replicate the whole item system with scripts in order to apply a filter.Hey guys I'm trying to create a food/ health or a 1up item that can only be picked up by a specific character and not the others. How can I this be achieved. Much regards..
pickup(entity, item);
a food/ health or a 1up item that can only be picked up by a specific character and not the others. How can I this be achieved.
Thanks brotherI didn't test but I believe you will need to replicate the whole item system with scripts in order to apply a filter.
I suggest testing the pickup() script function, this one will force an entity to pick an item.
Maybe adding an entity enumeration with range check can help too, then check entity type or name before executing the pickup() function.
Awesome I'll try them all thanksFor simple items, you could use didhitscript to do the character selection. If it's taken by correct character, the script will run item pickup script as if regular item. However, if it's taken by incorrect character, the script will drop clone of the item.