Page 1 of 1

Get type of SupplyCrate through script API

Posted: Wed Sep 06, 2017 7:41 pm
by JakSparro98
Currently the script API has no way to handle each type of supply crate (rifles, pistols, melee, miscs) differently, A way to distinguish a crate to another should be recorded as attribute (or different tilename) in addition the icon on the box we already have.

Re: Get type of SupplyCrate through script API

Posted: Wed Sep 06, 2017 9:13 pm
by Gurt
We have not any way to simply drag in a supply crate in the editor either or control its content in detail. This is further down the line when we need it ourselves (for campaigns and such).

Re: Get type of SupplyCrate through script API

Posted: Wed Sep 06, 2017 10:03 pm
by JakSparro98
Gurt wrote:
Wed Sep 06, 2017 9:13 pm
We have not any way to simply drag in a supply crate in the editor either or control its content in detail. This is further down the line when we need it ourselves (for campaigns and such).
I'm Just saying that as we can understand that inside a crate there is any kind of rifle/pistol/powerup/ecc thanks to a small picture on it, could be userfull if with an attribute we can know the type (and not the content) of the crate (rifle crate/handgun crate) but this could imply the creation of a dedicate class (something like IObjectSupplyCrate) that inherits from IObject and I understand that
that translates all into more work before the major update.