Page 1 of 1

Sniper Spawn

Posted: Sun Oct 24, 2010 5:25 pm
by jedimoose32
Hi everyone,

I've made a return to modding after half a year of lying dormant, and the map I'm currently assembling is looking pretty good so far (in my own humble opinion). One thing that I would like to do is make a special spawn point for snipers, that nobody else can spawn at. The main issue is that I am not particularly LUA-savvy, and while I have read the documentation (exhaustively) it proved to be not helpful. It presented some of the basic commands but really should have gone into some more detail because the scripts in the assets folder are waaay more complex. Any suggestions for several lines of code?

(P.S. I searched but was unfruitful, I know there is something out there like this but I sure can't find it.)

Thanks in advance.

Re: Sniper Spawn

Posted: Sun Oct 24, 2010 5:36 pm
by Fiodis
I think I remember you. Welcome back.

There are indeed a few threads out there dealing with this sort of thing, here is the most recent. If you scroll down, I believe the last suggestion there to be the most solid, but the other two may be somewhat simpler to pull off.

Re: Sniper Spawn

Posted: Sun Oct 24, 2010 11:02 pm
by jedimoose32
Thanks for the suggestion. The teleportation idea would work, and I will use that for now. Is there any way that I can script it so that a specific command post is off-limits to everyone except snipers though? That's what I'm really after here.