area zone

Author Topic: area zone  (Read 1540 times)

Is it possible to make a zone that checks to see if you have a certain body part on and if you don't it kills you and another that conters the first zone so it won't kill you?

no  :cookieMonster:
EDIT:oh it is possible
« Last Edit: July 16, 2008, 04:24:02 PM by pie man »

Yes it is possible. Just use triggers. For Ex.

Code: [Select]
datablock TriggerData(checkTrigger)
{
tickPeriodMS = 100;
};

function checkTrigger::OnEnterTrigger(%this,%trigger,%obj) { 
  %client = %obj.client;
  if(!%client)
  {
// check bodypart here
  }
 
}


Then just add

%client.player.kill("checkTrigger");

somewhere

It sounds like to me you want to make an airless environment?  (IE. Space).

If so, Mr.Wallet made this handy script. It was intended for my Planets 2.0 map but that fell through when I discovered that the terrain blocks were homoloveual.

Let me ask him, before I hand out the script just to be sure.

thanks but do i put the body part right next to the slashes or do i put them inbetween the two perenthes. And one more thing what do i save this as and where do i put it?
« Last Edit: July 17, 2008, 07:55:05 AM by spartan 911 »

Well thats just an example. It wont do anything.