Hey everyone love the site. Right now I am making myself a small tutorial on how to work the truck. I stole everything from goldrush, edited out all the nonrelated truck and gold stuff from the script, and I made myself a nice .sound file for it. Everything works in my tutorial but one little thing. You dont hear the teamvoiceannounce for the gold being secured in the truck. I looked in the console and a error “G_Scripting: trigger has unkown name: gold_crate” for both times I secured the gold. I looked my code over 5 times and cant seem to find what the problem is. Since the script file is kinda long Ill just post snippets of it where I think the problem may lie.
This is under truck
trigger add_goldbar
{
accum 0 inc 1trigger gold_full_0 show trigger gold_trans_0 hide trigger gold_crate secured accum 0 abort_if_less_than 2 trigger gold_full_1 show trigger gold_trans_1 hide trigger self truck_escape_msg wm_announce "Allied team is escaping with the Gold Crates!" wm_objective_status 1 0 2 wm_objective_status 1 1 1 wm_set_main_objective 2 0 wm_set_main_objective 2 1 setstate goldbars_toi invisible setstate goldbars_cm_marker invisible}
trigger truck_escape_msg
{
// ----------------------------------- vo ------------------------------------------
wm_addteamvoiceannounce 0 “axis_hq_truck_stop”wm_addteamvoiceannounce 1 "allies_hq_truck_escort" wm_teamvoiceannounce 0 "goldrush_axis_truck_stolen" wm_teamvoiceannounce 1 "goldrush_allies_truck_stolen" wm_removeteamvoiceannounce 0 "goldrush_axis_gold_defend" wm_removeteamvoiceannounce 1 "goldrush_allies_gold_get" // *---------------------------------------------------------------------------------*}
This is under gold_crate
trigger secured
{
accum 0 trigger_if_equal 1 gold_crate secured1
accum 0 trigger_if_equal 2 gold_crate secured2
}trigger secured1
{
wm_announce “Allied team has secured the first Gold Crate!”// *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "goldrush_axis_gold1_secured" wm_teamvoiceannounce 1 "goldrush_allies_gold1_secured" // *---------------------------------------------------------------------------------*}
trigger secured2
{
wm_announce “Allied team has secured the second Gold Crate!”// *----------------------------------- vo ------------------------------------------* wm_teamvoiceannounce 0 "goldrush_axis_gold2_secured" wm_teamvoiceannounce 1 "goldrush_allies_gold2_secured" wm_removeteamvoiceannounce 0 "goldrush_axis_gold_defend" wm_removeteamvoiceannounce 1 "goldrush_allies_gold_defend" // *---------------------------------------------------------------------------------*}
If you need the whole file ill gladly post it