Sniper Spawn

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Sniper Spawn

Post 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.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Sniper Spawn

Post 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.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Sniper Spawn

Post 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.
Post Reply