Page 1 of 1

What is this line for?

Posted: Sat Jan 30, 2010 10:29 pm
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?

Re: What is this line for?

Posted: Sun Jan 31, 2010 4:21 am
by DarthD.U.C.K.
you should have a path called "HolodiskSpawn", the code spawns the holodisk on it

Re: What is this line for?

Posted: Sun Jan 31, 2010 11:07 am
by Fiodis
Additionally, (correct me if I'm wrong, but I don't think I am) the path should have only one point.