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.

Players die and explosive

Share questions and tutorials related to the map editor. Share you maps in the Superfighters Deluxe Custom Maps section.
Forum rules
By using the forum you agree to the following rules.
Post Reply
Chees
Meatbag
Posts: 7
Joined: Sat Mar 18, 2017 10:02 am
Title: Meetbag
SFD Account: SuperCaptain
SFD Alias: [police]Chees
Started SFD: PreAlpha 1.3.1b
Location: VietNam
Gender:
Age: 17

Players die and explosive

Post by Chees » Wed May 24, 2017 10:43 am

I wonder if the player die and explosive.How can i do that
pls help me.Thx :D
0 x

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

Post by UnluckyNinja » Wed May 24, 2017 8:22 pm

You need an OnPlayerDeathTrigger, then in the script:
If you just want visual effects: player.Gib();
If you want damage to other players: Game.CreateExplosive(var).
(Didn't check the spell, better look them up in the doc.)
0 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest