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

--- Quote from: Brian Smithers on May 23, 2012, 06:33:24 PM ---
if(%mnt.getDatablock().getName() $= "TronLightBikeVehicle")

anyone see a similarity?

--- End quote ---
Does it even matter? He's learning how to script, what's wrong with that?
elm:

--- Quote from: HellsHero on May 23, 2012, 09:16:04 PM ---Does it even matter? He's learning how to script, what's wrong with that?

--- End quote ---

Exactly. Brian, I know you've done this plenty so chill out and instead, help him.
Greek2me:
I use this:

--- Code: ---if(striPos(%obj.getClassName(),"Vehicle") >= 0)
--- End code ---
Treynolds416:

--- Quote from: Greek2me on May 23, 2012, 10:49:24 PM ---I use this:

--- Code: ---if(striPos(%obj.getClassName(),"Vehicle") >= 0)
--- End code ---

--- End quote ---
I don't think striPos is default...
otto-san:

--- Quote from: Treynolds416 on May 23, 2012, 10:54:53 PM ---I don't think striPos is default...

--- End quote ---
It is.
Navigation
Message Index
Next page
Previous page

Go to full version