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.
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
-
- 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: 21
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: 914
- 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: 24
- 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
-
- 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: 21
oh, forgot some details in request sorry.
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...