entity condition hook for multiple names ?
Posted: Wed Jul 01, 2020 8:48 pm
can i use EntityPreHook with EntityCondition wihin a single decorater but with multiple classnames ?
like
but when i use:
to try and achieve that, it will construct the hook only for the first paramter it compares and receives for the hook? is this intended or a bug ? all other values in listofnames will be ignored in the prehook
like
Code: Select all
listofnames = ["name1","name2"]
@EntityPreHook(EntityCondition.equals_entity_classname(listofnames), 'detonate')
but when i use:
Code: Select all
@EntityPreHook(EntityCondition.equals_entity_classname(*listofnames), 'detonate')
to try and achieve that, it will construct the hook only for the first paramter it compares and receives for the hook? is this intended or a bug ? all other values in listofnames will be ignored in the prehook