Page 1 of 1

Death Box?

Posted: Fri Sep 10, 2010 10:14 pm
by Bountty_Hunter
Okay, I this may be in the forums already, so if it is...just direct it to me....


But how do you make a box or pyramid death?? So like when a tank touches the object, the tank will die. Along with that....how do you make it so you can have a message when you die. For instance: when you die, the server message will say in white: OPPS, YOU DIED!


Thanks!

Re: Death Box?

Posted: Fri Sep 10, 2010 10:40 pm
by blast
You create a physics driver and use the 'death' attribute, and then you assign that physics driver to your object. Check the BZW manual. On Windows, the manual will be in the start menu. On Linux you can use 'man bzw'. Or you can look here: http://my.bzflag.org/bzfman.cgi?bzw.5.in

Re: Death Box?

Posted: Tue Sep 14, 2010 12:31 am
by Bountty_Hunter
Well could you give me an example. Like if I wanted to make the pyramid 'death' and the pyramid is located at: 0, 0, 0 (xyz) and is size 10, 10, 10 (xyz) How would I code it?

Re: Death Box?

Posted: Tue Sep 14, 2010 12:38 am
by blast
Maybe this, but I haven't tested it at all.

Code: Select all

physics
  name dienow
  death You die now
end

pyramid
  position 0 0 0
  size 10 10 10
  phydrv dienow
end