CS2D
Scripts What is build "mode" ? What is build "mode" ?
3 replies Hey everyone.
Please take a look at build or 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 ? 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. 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. DC Admin Offline
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.