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
Is it possible that gibzone affect only for objects?
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
Is it possible that gibzone affect only for objects?
Is it possible that gibzone affect only for objects, not to players? Or can i compile script using area trigger?
0 x
-
Dumby Eggy
- Superfighter

- Posts: 66
- Joined: Wed Dec 21, 2016 4:22 am
- SFD Account: Huevon NEO
- SFD Alias: Huevon SFD
- Started SFD: PreAlpha 1.8.8
- Location: Honduras
- Gender:
- Age: 23
GibZone = affects everything.
If you need a script to gib players, here's one:
you need to put this in an area trigger so it works. Preferably put in on it says "On Enter Method".
If you need a script to gib players, here's one:
Code: Select all
/* A simple way to gib a player :D */
public void OnStartup()
{
if(args.Sender is IPlayer)
{
IPlayer ply = (IPlayer)args.Sender;
ply.Gib();
}
}
0 x
HINT: You will not surprise me if you are good with snipers and magnums and katanas; but I will give my respect for someone who is a weapon-master. So don't wait any cheer marksmen...
- KliPeH
- Moderator

- Posts: 922
- Joined: Sat Mar 19, 2016 3:03 pm
- Title: [happy moth noises]
- SFD Account: KliPeH
- Started SFD: Pre-Alpha 1.4.2
- Gender:
- Contact:
renttis wrote:only for objects, not to players?
I was under the impression the dude wanted the script to work solely on objects, not players.Dumby Eggy wrote:If you need a script to gib players, here's one:
0 x

- ShutDownMan
- Fighter

- Posts: 32
- Joined: Sat Mar 19, 2016 7:17 pm
- Title: Yeah, science!
- SFD Alias: ShutDownMan, Devil Shut
- Started SFD: 1.2.something
- Location: Hu3, Brazil
- Gender:
- Age: 26
- Contact:
Create an area trigger with script method set to "ObjectGib" (no quotes)
Code: Select all
public void ObjectGib(TriggerArgs args)
{
if(!(args.Sender is IPlayer))
{
(args.Sender as IObject).Destroy();
}
}
1 x
~ShutDownMan
-
Dumby Eggy
- Superfighter

- Posts: 66
- Joined: Wed Dec 21, 2016 4:22 am
- SFD Account: Huevon NEO
- SFD Alias: Huevon SFD
- Started SFD: PreAlpha 1.8.8
- Location: Honduras
- Gender:
- Age: 23
0 x
HINT: You will not surprise me if you are good with snipers and magnums and katanas; but I will give my respect for someone who is a weapon-master. So don't wait any cheer marksmen...