Blockland Forums > Modification Help
Converted the Citi MK2 to FWD, doesn't work, what's wrong?
<< < (3/4) > >>
Sideswipe:
Sorry I was procrastinating. I tried what Teneksi suggested and...


--- Code: ---function CitiMk2Vehicle::onAdd(%this,%obj)
{
   Parent::onAdd(%this,%obj);
   %obj.setWheelPowered(2, 0);
   %obj.setWheelPowered(3, 0);
 %obj.hideNode(lhand);
 %obj.hideNode(rhand);
 %obj.hideNode(lhook);
 %obj.hideNode(rhook);
 %obj.schedule(0,garageDefault);
}
--- End code ---

There is a syntax error somewhere in there (apparently in "%obj.setWheelPowered(3, 0);") - but where?
Conan:
do you completely restart BL when you make these changes? you need to if you do changes to a .zip file
Latte:

--- Quote from: Conan on November 19, 2017, 07:46:36 PM ---do you completely restart BL when you make these changes? you need to if you do changes to a .zip file

--- End quote ---


--- Code: ---setModPaths(getModPaths());
--- End code ---
Conan:

--- Quote from: Latte on November 19, 2017, 11:05:21 PM ---
--- Code: ---setModPaths(getModPaths());
--- End code ---

--- End quote ---
true, i guess i should have just said that. i feel like completely restarting bl is a better habit to instill to new developers until they figure out how the scripting engine works a little better.
Teneksi:
I don't understand how you're having so much trouble with this.  here

https://www.dropbox.com/s/y9nfm23pez8bicf/Vehicle_CitiMk2.zip?dl=1
Navigation
Message Index
Next page
Previous page

Go to full version