Hi,
I am almost finished with my first map, but the scripting is giving me a fair amount of problems. I have three dynamitable items in the map which worked fine until i tried adding a trigger in the script for the purpose of add/remove voiceannounce stuff. Now when I enter the map, where there were dyno signs on command map there are now CP signs. I can plant dyno but they don’t blow. I have included my script (which is not finished and I know is a mess), can someone please tell me what I’ve done wrong?
Thx
game_manager
{
spawn
{
wait 200
setautospawn “gate” 0
//Axis spawn at gate (0)
wait 1700
//voices played at beginning of map
wm_addteamvoiceannounce 0 “axis_defend_gate”
wm_addteamvoiceannounce 1 “allies_destroy_gate”
wm_teamvoiceannounce 0 “axis_defend_gate”
wm_teamvoiceannounce 1 “allies_destroy_gate”
}
}
trigger airfield_gate_destroyed
{
wm_announce "Allies have breached the airfield gate!!!"
alertentity gate_wobj
alertentity gate_spawn
setautospawn "gate" 1
//Allies will now spawn at gate (1)
setautospawn "airfield" 0
//Axis will now spawn at airfield
// *----------------------------------- vo ------------------------------------------*
wm_teamvoiceannounce 0 "axis_destroyed_gate"
wm_teamvoiceannounce 1 "allies_gate_destroyed"
wm_removeteamvoiceannounce 0 "axis_defend_gate"
wm_removeteamvoiceannounce 1 "allies_destroy_gate"
}
airfield_gate
{
spawn
{
wait 300
constructible_class 3
}
death
{
trigger game_manager airfield_gate_destroyed
}
}
hangar_door
{
spawn
{
wait 300
constructible_class 3
}
death
{
wm_announce "Allies have breached the hangar doors!!!"
}
}
bomb_crates
{
spawn
{
wait 300
constructible_class 3
}
death
{
wm_announce "The Allies have destroyed the bombs!!!"
}
}
}
