Blockland Forums > Modification Help
How to get "every" vehicle datablock
<< < (4/4)
Greek2me:

--- Quote from: Port on May 25, 2012, 12:46:20 AM ---They don't necessarily have “Vehicle“ in their datablock name.
For example, horseArmor.

--- End quote ---

They don't fall under $TypeMasks::VehicleObjectType, either.
Slicks555:

--- Quote from: Treynolds416 on May 24, 2012, 09:29:21 PM ---Bot vehicles, such as the horse

--- End quote ---
Well duh, that's because they're not vehicles. They're just mountable.


--- Quote from: Greek2me on May 25, 2012, 12:55:51 AM ---They don't fall under $TypeMasks::VehicleObjectType, either.

--- End quote ---
So neither code works 100%.

if ((%obj.getType() & $TypeMasks::VehicleObjectType) || %obj.getDatablock().nummountpoints > 0)

Oh lookie!
Mold:
Whats the difference between strPos and striPos?
elm:

--- Quote from: Mold on May 26, 2012, 05:26:45 AM ---Whats the difference between strPos and striPos?

--- End quote ---

Case sensetivity.
Navigation
Message Index
Previous page

Go to full version