I made a gun that can be destroyed with dynamite, however the dynamite does nothing and it can be destroyed with bullets… when I plant though it does anounce “dynamite planted” but once it blows nothing happens
I even set health to 0 so bullets cant destroy it but nothing changes
*Script:
Game_manager
{
spawn
{
// Game rules
wm_axis_respawntime 25
wm_allied_respawntime 14
wm_set_round_timelimit 35
// Stopwatch mode defending team (0=Axis, 1=Allies)
wm_set_defending_team 0
// Winner on expiration of round timer (0=Axis, 1=Allies -1=None)
wm_setwinner 0
}
trigger objective_counter
{
accum 1 inc 1
trigger game_manager checkgame
}
trigger checkgame
{
accum 1 abort_if_not_equal 2
wm_announce “The Allies have taken control of the beach!”
wm_setwinner 1
wait 2500
wm_endround
}
eastgun
{
spawn
{
wait 300
constructible_class 3
}
death
{
trigger eastgun_toi remove
wm_announce "East Anti-tank gun destroyed!!!"
trigger game_manager objective_counter
}
}
eastgun_toi
{
trigger remove
{
remove
}
}
westgun
{
spawn
{
wait 300
constructible_class 3
}
death
{
trigger westgun_toi remove
wm_announce "West Anti-Tank gun destroyed!!!"
trigger game_manager objective_counter
}
}
westgun_toi
{
trigger remove
{
remove
}
}
}

