Author Topic: getDts  (Read 542 times)

How do I find a specific dts rather then datablock.

Such as:
Code: [Select]
if(%col.getDatablock() $= nametoid("Stuffdata"))

Example:?
Code: [Select]
if(%col.getDts() $= nametoid("Add-ons/Script_Test/testshape.dts"))
« Last Edit: July 09, 2009, 08:02:02 PM by Gorella »

%whatever.getDatablock.shapeFile $= "base/data/shapes/player/m.dts"
Players, weapons, vehicles, and I'm pretty sure even static shapes all use shapeFile so it'll work for just about anything.

That code appears to result to a nil line.
« Last Edit: July 09, 2009, 08:43:37 PM by Gorella »

getDatablock()*
if you didn't fix that.

getDatablock()*
if you didn't fix that.
Yep, I found a way around it though which is more efficient. Thanks to you both.