What is this line for?

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
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

What is this line for?

Post by wishihadaname »

I'm confused, I thought that for ctf mode you just placed a flag in-game and then added the needed scripting. What do these lines do then?

-- spawn Holodisk
Holocron1Spawn = GetPathPoint("HolodiskSpawn", 0) --gets the path point
CreateEntity("pol_icon_disk", Holocron1Spawn, "pol_icon_disk") --spawns the disk

And more improtantly how do I get that to work?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: What is this line for?

Post by DarthD.U.C.K. »

you should have a path called "HolodiskSpawn", the code spawns the holodisk on it
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: What is this line for?

Post by Fiodis »

Additionally, (correct me if I'm wrong, but I don't think I am) the path should have only one point.
Post Reply