Since three weeks, i try to understand how to script a lab. A simple lab, without activating animations and such : You click on a Buildmenu button, and the lab build the unit on the "pad" element of it's model.
But nothing work. There is, like billion things to know for making it work. And there is always something that stop the lab to build the stuff. Between the include this, define that, The activate, the deactivate, the startbuilding, the stopbuilding, the state, the inbuildstance, the yard, the statechg, the activatecmd, the deactivatecmd, the querybuildinfo, this, that, and don't forgot to REPEAT THE DAMN COMMAND FOR NO GOOD REASON, etc. ad vitam nauseam.
Please, make something simple !
I propose something simple :
When i want to build something, i use the command "build", with as value the name of the model element on top of what the unit is build. Without the value, that mean the unit/building is free to build where it want.
I put this command in the "Startbuilding".
If i want the builder wait for some animation, i just add the animation stuff in the "Startbuilding" !
No more "activate".
No more "QueryBuildInfo".
No more "Deactivate" (you put that in Startbuilding after the command "build", or in "stopbuilding". Mean, where you simply need it to do the job).
No more "Go".
No more "Stop".
And no more all theses damn include.
Please ? I am a simple man. This soirt of scripting was already weird in 1997, 13 years ago...
Three weeks without any success. That thing kill me.
Need asbolutely a SIMPLE mean to make a lab !
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Need asbolutely a SIMPLE mean to make a lab !
Are you using COB or Lua ? With COB there is not much we can do without breaking OTA compatibility but Lua is very flexible and it should not be difficult to write a basic interface on top of what already exists.
=>;-D Penguin Powered
Re: Need asbolutely a SIMPLE mean to make a lab !
Well, i will try lua, then. Using "Arm Vehicle Plant Script" as model ?
Re: Need asbolutely a SIMPLE mean to make a lab !
The lua script work at the first try
Thank you.
Thank you.
Who is online
Users browsing this forum: No registered users and 12 guests