The builder will show highlight for structure but not build. - Page 2

The builder will show highlight for structure but not build.

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: The builder will show highlight for structure but not bu

Post by FireStorm_ »

Good job.
Maybe your feeling of success will keep you motivated. :-)
I know it can be hard.

One thing though, because it might help.
This has to be written as you see it...

Code: Select all

function script.QueryNanoPiece()
By doing so you'll make Spring ask you for a nozzle or nano-point or whatever, it doesn't matter. As long as you give a piece as answer.

...but the name of a piece can be entirely up to you.
For example:

Code: Select all

local theekettle = piece "theekettle"
So when Spring asks about your nano, make sure you give the name of that piece.

Code: Select all

function script.QueryNanoPiece()
     return theekettle
end
In any case, good luck :-)
Post Reply

Return to “Game Development”