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.

Get type of SupplyCrate through script API

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
User avatar
JakSparro98
Superfighter
Superfighter
Posts: 327
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 19

Get type of SupplyCrate through script API

Post by JakSparro98 » Wed Sep 06, 2017 7:41 pm

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

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1069
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 28

Post by Gurt » 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).
0 x
Gurt

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 327
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 19

Post by JakSparro98 » Wed Sep 06, 2017 10:03 pm

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.
1 x

Locked

Who is online

Users browsing this forum: No registered users and 1 guest