Forum

> > CS2D > Scripts > What is build "mode" ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English What is build "mode" ?

3 replies
To the start Previous 1 Next To the start

old What is build "mode" ?

Rainoth
Moderator Off Offline

Quote
Hey everyone.
Please take a look at cs2d lua hook build or cs2d lua hook buildattempt

Arguments contain something called "mode"

May I ask what building modes are or how I could use them ? I tried just msg'ing/printing out the mode and I get 0 when building normally. No idea. Anyone know what building modes are or how I could benefit from them ?

old Re: What is build "mode" ?

DarkLight66
User Off Offline

Quote
I believe that argument is for getting which item is being supplied from a supply/super supply, though i'm not sure what it gets from other buildings.

old Re: What is build "mode" ?

KimKat
GAME BANNED Off Offline

Quote
Someone should have had really written a full review of all Lua things by now. Guess no one has the time to. But there is a helpful document when you download CS2D which you can use also there is a online way to go through all the things.
> All the things

I believe building mode means when you're attempting to build something if you are gonna see the construction that you see before the initial building is complete or if you just simply want to build. But I could be wrong however that's my speculations.

old Re: What is build "mode" ?

DC
Admin Off Offline

Quote
I guess it's about rotation. Most buildings can't be rotated at all but some can (barbed wire for example).
Why don't you write a script to check it? Simple print the mode value.
It could also be for other information but I'm sure that at least for barbed wire it must be the rotation.

It's right, the online reference is a bit incomplete for some commands / hooks.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview