Page 1 of 1

SCRIPTING HELP

Posted: January 9th, 2011, 11:20 am
by bigbabol
first of all sorry for my bad english.... :mrgreen:
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

Re: SCRIPTING HELP

Posted: January 9th, 2011, 2:43 pm
by Pedsdude
Give your trigger_multiple a targetname (in this case I've used 'deathtrigger'), and add this to your .gsc:

Code: Select all

deathtrigger()
{
trigger = getent("deathtrigger","targetname");

	while (1)
	{
		trigger waittill ("trigger", user);
		user suicide();
	}
}
(making sure you thread it in main())

Re: SCRIPTING HELP

Posted: January 9th, 2011, 3:59 pm
by bigbabol
thanks very much :D

Re: SCRIPTING HELP

Posted: January 9th, 2011, 4:33 pm
by Pedsdude
No problem :)