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.

Projectile names?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Scraper
Fighter
Fighter
Posts: 22
Joined: Tue Nov 01, 2016 9:06 am
SFD Account: Scrapper
SFD Alias: Scrapper
Started SFD: PreAlpha 1.7.1
Gender:

Projectile names?

Post by Scraper » Mon Jun 19, 2017 1:44 pm

I am working on a map that is FULL of scripting, and ofc, it contains a shooting script. Now,the problem starts.
I know the name of most projectiles, but is there a list of projectile names?
I am having trouble finding projectile names for GRENADE LAUNCHER, FLAREGUN, and SAWEDOFFSHOTGUN.
Does somebody here know the names of these projectiles, or (if possible) ALL projectiles?
0 x

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

Post by Gurt » Mon Jun 19, 2017 8:43 pm

You can find that information in the ScriptAPI.

Replace the ".." below with your local windows path to your SFD installation folder in your windows explorer and you will find information about ProjectileItem.
../Superfighters Deluxe/Content/Data/misc/ScriptAPI/html/namespace_s_f_d_game_script_interface.html#ad39ce04976533a6d2a3027722a759298
0 x
Gurt

User avatar
UnluckyNinja
Meatbag
Posts: 7
Joined: Sun Aug 07, 2016 11:30 am
Gender:

Post by UnluckyNinja » Sun Jul 02, 2017 2:00 pm

Make an area trigger. Write all incoming object's name to console. Run the map. Shoot.

Or just go to API document:
Image
http://i.imgur.com/W6dqs22.jpg
0 x

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

Post by JakSparro98 » Sun Jul 02, 2017 2:31 pm

UnluckyNinja wrote:
Sun Jul 02, 2017 2:00 pm
Make an area trigger. Write all incoming object's name to console. Run the map. Shoot.
Projectiles cannot be recognized by triggers yet.
Gurt wrote:
Mon Jul 25, 2016 9:55 am
Projectiles are not ordinary objects in SFD. They can not be registered, read or manipulated through the ScriptAPI today.
0 x

User avatar
UnluckyNinja
Meatbag
Posts: 7
Joined: Sun Aug 07, 2016 11:30 am
Gender:

Post by UnluckyNinja » Sun Jul 02, 2017 3:03 pm

JakSparro98 wrote:
Sun Jul 02, 2017 2:31 pm
UnluckyNinja wrote:
Sun Jul 02, 2017 2:00 pm
Make an area trigger. Write all incoming object's name to console. Run the map. Shoot.
Projectiles cannot be recognized by triggers yet.
Gurt wrote:
Mon Jul 25, 2016 9:55 am
Projectiles are not ordinary objects in SFD. They can not be registered, read or manipulated through the ScriptAPI today.
Oh my bad. I mistook projectile with throwings, only throwings are IObjects and can be recognized.
0 x

Post Reply