[SCRIPTING] Strange TEMPLATE problem ...

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: [SCRIPTING] Strange TEMPLATE problem ...

Post by NoQ »

Goth Zagog-Thou wrote:Yes, that's how it's done in Per's AI sample above. The game supports up to three turrets per template.
But, in the sample above, it looks like there is only one weapon parameter in assembleWeaponTemplate() definition. I tried to write something like

Code: Select all

_newTemplate = assembleWeaponTemplate(... , _bestWeapon, _bestWeapon);
but i get 'Expected 4 parameters' error.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: [SCRIPTING] Strange TEMPLATE problem ...

Post by Goth Zagog-Thou »

Hmm, I tried it and getting the same thing you are. There's a built-in DragonSeraphGauss template and it won't load either.

Weird.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: [SCRIPTING] Strange TEMPLATE problem ...

Post by Per »

Yes, it is only written for a single weapon. It seems difficult to extend to take multiple weapon arguments.