Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Get type of SupplyCrate through script API
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
Get type of SupplyCrate through script API
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.
0 x
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
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).
0 x
Gurt
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
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.
1 x