Page 1 of 1

OnDie Hook on Object

Posted: Tue Apr 16, 2013 10:59 am
by Damonya
It's me again. :oops:

I asked myself a simple question. Is it possible to have a OnDie Hook on object?

I transformed an object, by a destructible object

defineObject{
name = "boulder_blockage_hit",
class = "Blockage",
model = "mod_assets/models/decorations/boulder.fbx",
brokenModel = "mod_assets/models/deep_dungeon/deep_dungeon_floor_dirt.fbx",
placement = "floor",
health = 30,
evasion = -1000,

repelProjectiles = true,
hitSound = "impact_blade",
hitEffect = "hit_wood",
editorIcon = 56,
}

Now I want that when it is broken, a function script is launched

So, OnDie hook works on object?

Re: OnDie Hook on Object

Posted: Tue Apr 16, 2013 11:05 am
by Damonya
Ok sorry, It works. I have just badly scripted my hook.

You can delete this useless topic. Sorry.