pls help me.Thx
This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum 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.
-
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: 25
Players die and explosive
I wonder if the player die and explosive.How can i do that
pls help me.Thx
pls help me.Thx
0 x
- 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: 27
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
