i have created a trigger multiple and i want that when a player touches it the player dies like the first part in mp_dungeon
SCRIPTING HELP
Moderator: Core Staff
-
bigbabol
- CJ Newbie

- Posts: 50
- Joined: January 9th, 2011, 11:13 am
SCRIPTING HELP
first of all sorry for my bad english....
i have created a trigger multiple and i want that when a player touches it the player dies like the first part in mp_dungeon
i have created a trigger multiple and i want that when a player touches it the player dies like the first part in mp_dungeon
-
Pedsdude
- Site Admin

- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK
Re: SCRIPTING HELP
Give your trigger_multiple a targetname (in this case I've used 'deathtrigger'), and add this to your .gsc:
(making sure you thread it in main())
Code: Select all
deathtrigger()
{
trigger = getent("deathtrigger","targetname");
while (1)
{
trigger waittill ("trigger", user);
user suicide();
}
}

-
bigbabol
- CJ Newbie

- Posts: 50
- Joined: January 9th, 2011, 11:13 am
Re: SCRIPTING HELP
thanks very much 
-
Pedsdude
- Site Admin

- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK