Page 1 of 1
Automatic Minefields? Possible?
Posted: Fri May 11, 2007 1:52 pm
by Chamboozer
Is it possible to place an object in zeroeditor, say, a mine, that will respawn constantly thus preventing the player from entering a certain area without dying?
What about non-respawnable mines?
Posted: Fri May 11, 2007 3:02 pm
by Ace_Azzameen_5
Yes, this is definitely possible. If not with the normal mines spawning somehow, then with the lua OnEnterRegion/KillObject codes and many ZE placed mines and regions.
I don't know the syntax format for LUA in these cases. Stupid documentation explains it but uses LUA specific Lingo. DUR!
Posted: Fri May 11, 2007 8:51 pm
by [RDH]Zerted
If mines work when you just place them in ZE, you could use OnObjectKill() to determine when someone steps on it, then respawn that mine.
If mines don't work when just placing them in ZE, place the inactive mine object, then put a damage/death region ontop of it.
The damage/death region would create the less lag in MP, but wouldn't have the explosive death. Remember, mines don't hurt engineers (unless you are modding that too).
Of course the docs use Lua lingo, thats the language. If you don't understand it, look existing examples in the maps.
Posted: Sat May 12, 2007 12:29 am
by Chamboozer
A mine is a weapon, so maybe we can convert it into a building which gets destroyed whenever someone walks on it. Building has a destroyed explosion effect, then we set the respawn time to 0.0
only two problems with that, either one region kills all the mines (lol) or we have many, many regions.
other proble is that I have absoloutly no idea how to change a weapon into a destroyable building...
Posted: Sat May 12, 2007 11:07 am
by Laserblast
Armedbuildings have an autofire command. You might be able to make a small/invisible building that autofires mines every now and then. Just make sure the dispenser or whatever not has a short range so that the building would be destroyed by the mine's explosion.
Drawbacks:
The building might be targetted by others. The building would have to be found to be
repaired for the mines to reappear. Finally, the AI might prove to be overzealous by spending all their time trying to repair destroyed mine-layer buildings.
This solution might be a little harsh on the computer, especially with many such buildings. However, it is an idea

.
Posted: Sat May 12, 2007 7:19 pm
by Chamboozer
OK, so the weapon itself cannot be placed, so I will have to create a separate object using its MSH.