Character specific food pick up

SEEGET

Member
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..
 
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..
I 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.

pickup(entity, item);

Maybe adding an entity enumeration with range check can help too, then check entity type or name before executing the pickup() function.
 
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.

For 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.
 
I 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.
Thanks brother 😊 😊
For 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.
Awesome I'll try them all thanks
 
Back
Top Bottom