Players die and explosive
Posted: Wed May 24, 2017 10:43 am
I wonder if the player die and explosive.How can i do that
pls help me.Thx
pls help me.Thx
- official home of Superfighters Deluxe!
http://mythologicinteractiveforums.com/
http://mythologicinteractiveforums.com/viewtopic.php?f=15&t=1871
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.)
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.)
Code: Select all
public void MyMethod(TriggerArgs arg)
{
//code
}