Page 1 of 1

Unit spawn dispencer

Posted: Wed Jul 11, 2012 10:02 am
by Anakin
Hi,

just read this:
http://www.gametoast.com/forums/viewtop ... 47#p126047

is it right that you can do a dispenser for Sides? If yes i haven't understand everyting there. what are the necessary files for this?

Re: Unit spawn dispencer

Posted: Thu Jul 12, 2012 10:12 am
by DarthD.U.C.K.
you can make a weapon that dispenses a certain kind of unit which will then belong to a chosen team. as the post says you have to put this section once for each team under scriptpostload and when you add the dispensed units to a third or fourth team, you also have to set up the friends/enemys and goals up for the team like you do it for locals.

Re: Unit spawn dispencer

Posted: Thu Jul 12, 2012 12:11 pm
by Anakin
sounds like exacly what i'm looking for.

Re: Unit spawn dispencer

Posted: Thu Jul 12, 2012 1:52 pm
by Marth8880
Ugh, I'm having trouble get this stupid thing to work as well... :roll:

Re: Unit spawn dispencer

Posted: Fri Jul 13, 2012 5:11 am
by Anakin
can someone show me the important parts of the post? i mean i don't like to read the whole 3 pages because i will not understand everyting. so it would be easyer for me to focus on the important parts.

@ Marth: can you tell me if you get it?

Re: Unit spawn dispencer

Posted: Fri Jul 13, 2012 11:52 am
by DarthD.U.C.K.
Anakin wrote:can someone show me the important parts of the post?
the important part is exactly the post you linked to, you inly need to read it carfully and understand it

Re: Unit spawn dispencer

Posted: Fri Jul 13, 2012 12:05 pm
by Anakin
ok what file is this and in what part? i think it's the Lua file. do i only need to copie this part in the Lua (just before the teamsetup?) and add to a unit/building the Sonden waepon. there i change the ControlType from remote to self and change the msh/animation/weapon... and than it works?

Re: Unit spawn dispencer

Posted: Fri Jul 13, 2012 1:37 pm
by DarthD.U.C.K.
yes, this has to go into the mission lua once for each team and you have to make a dispenser weapon drops some dummy odf and use the weapons odfname in the lua.