gametechmods
Robot Arena => Modifications => Topic started by: DuckRA2 on January 05, 2009, 11:43:24 PM
-
when a bot goes in a zone, how do I make it destroy? I tried using something like this but didnt work
disable(robot_chasis,1)
-
Duck,
1. What kind of zone? Zone='area'; or a Smart Zone (arena or bot) ?
2. "Destroy" or just "Disable"?
.......And what? Itself, another, all of the others?
...
-
oh sry, its an arena, and a spike zone zone
-
And:
destroy or disable?
self or opponent(s)?
-
destroy self
-
The coding would be:
plus.eliminatePlayer(0)
Here's how to code it under the appropriate Smart Zone:
if robot ==1: plus.eliminatePlayer(0)
if robot ==2: plus.eliminatePlayer(1)
if robot ==3: plus.eliminatePlayer(2)
if robot ==4: plus.eliminatePlayer(3)
Here's a little tweek I put together to demo: BoxArena_Lethal_Spike (http://www.madiaba.gametechmods.com/BoxArena_Lethal_Spike.rar)
Just drop this python in your "Arenas" folder (stock/DSL).
...
Let me know. Finishing Wham's arena...
...
-
mine is a sumo arena, and BTW: where in the py would I put that?!? EDIT-- Oh ok I looked at that py
THANK YOU very much, without that help I would be stuck foreva!:)
-
another question, how do i make something bounce in an arena? when I put mass on 0 for that node or whatever it stays in one spot, but when I put mass on It disappears(im guessing it goes down and down...)
edit:nvd i figured it out by playin' around(its the Dis Collision Pairs)
-
*GMID_HAVOK_RIGIDBODY
{
[...]
*ELASTICITY 0.300000
[...]
}
Make it higher.
-
thanks serge