I wonder if the player die and explosive.How can i do that
pls help me.Thx
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.
Players die and explosive
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- UnluckyNinja
- Meatbag
- Posts: 7
- Joined: Sun Aug 07, 2016 11:30 am
- Gender:
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.)
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
Where exactly to enter the script for OnPlayerDeathTrigger?UnluckyNinja wrote: ↑Wed May 24, 2017 8:22 pmYou 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
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
Do you need that the player explodes in giblets or a normal explosion like the one we see from a red barrel?
You need to specify a method name inside the Script Method field of the OnPlayerDeathTrigger.Hamurlik wrote: ↑Wed Mar 06, 2019 2:28 pmWhere exactly to enter the script for OnPlayerDeathTrigger?UnluckyNinja wrote: ↑Wed May 24, 2017 8:22 pmYou 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.)
the method name refers to a public method inside the map script.
Code: Select all
public void MyMethod(TriggerArgs arg)
{
//code
}
0 x