Example
dungeon.lua
Code: Select all
spawn("weak_spider", 1, 10, 9, 3, "weak_spider1")
Code: Select all
cloneObject{
name = "weak_spider",
baseObject = "spider",
health = 1,
}
and then define a different named material for use with the weak_spider? I realize we can overwrite the parameters listed under defineMaterial for the default spider model, but that's not what I want to do, because that affects all spiders.
Code: Select all
defineMaterial{
name = "weak_spider",
diffuseMap = "assets/textures/monsters/spider_dif.tga",
specularMap = "assets/textures/monsters/spider_spec.tga",
normalMap = "assets/textures/monsters/spider_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 40,
depthBias = 0,
}