Celena Luna |
09-12-2018 13:06 |
Create func_breakable with Flesh Material
PHP Code:
public Create_ItemBox(type, Float:Origin[3]) { new ent; ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"func_breakable")) if(!pev_valid(ent)) return
set_pev(ent, pev_classname, "item_box")
fm_set_kvd(ent, "material", 3, "func_breakable") fm_set_kvd(ent, "health", Item_Health[random_num(0, 4)], "func_breakable") fm_spawn(ent))
engfunc(EngFunc_SetSize,ent,Float:{-20.0, -20.0, 0.0},Float:{20.0,20.0, 20.0})
set_pev(ent, pev_origin, Origin)
...
}
I am trying to create func_breakable with flesh material. I don't know why but when I hit it with knife, it make the glass material sound, not the flesh material sound. :cry:
|