Traps! and other good stuff [Solved: see Darth's rev]
Posted: Mon Apr 04, 2011 11:07 pm
Hey all!
I am about to begin making a new map, the first i will actually be releasing
As many you know, I have been here for a while with the appearance of doing absolutely nothing. That is hardly true, as I have been learning and making maps for some of my friends, myself, and my cousins. I just never have gotten around to releasig one yet, and I will do that eventually.
Allow me to step off my soapbox and ask a small question:
I have a few "traps" that I am working on, and it involves anybody walking into a region, spawning a landmine at a certain path, and blowing them to smithereens if they step on it. (in the process, it also disables the trap)
Heres me code:
What I would like to know is if it is possible to spawn a mine that will blow anybody up if they steppped on it, regardless of team. (I am away from my normal computer, so I wont beabe to mess with this for a while)
Thanks!
I am about to begin making a new map, the first i will actually be releasing
As many you know, I have been here for a while with the appearance of doing absolutely nothing. That is hardly true, as I have been learning and making maps for some of my friends, myself, and my cousins. I just never have gotten around to releasig one yet, and I will do that eventually.
Allow me to step off my soapbox and ask a small question:
I have a few "traps" that I am working on, and it involves anybody walking into a region, spawning a landmine at a certain path, and blowing them to smithereens if they step on it. (in the process, it also disables the trap)
Heres me code:
Code: Select all
ActivateRegion("trapregion1")
OnEnterRegion(
function(regIn,character)
CreateEntity("dro_weap_inf_mine_ord", point, "trap_path1")
DeactivateRegion("trapregion1")
end,
"trapregion1"
)Thanks!