I can’t seem to get the hang of this scripting business. I am making a constructible mg42 nest but when trying to play my map I getthe error:
G_Script_ScriptParse(), Error (line 2) :
Unknown event: bunker_script
Here is a copy of my script (c n’ p) from Socks in a thread with the name changed:
game_manager
{
bunker_script
{
spawn
{
wait 200
constructible_class 2
trigger self startup
}
buildstart final
{
}
built final
{
setstate bunker_extra default
setstate bunker_mg42 default
setstate bunker_materials invisible
// Some kind of UI pop-up to alert players
wm_announce "Axis team has built the bunker mg!"
}
decayed final
{
trigger self startup
}
death
{
trigger self startup
// Some kind of UI pop-up to alert players
wm_announce "Allied team has destroyed the bunker mg!"
}
trigger startup
{
setstate bunker_extra invisible
setstate bunker_mg42 invisible
setstate bunker_materials default
repairmg42 bunker_mg42
}
}
}
Any help would be appreciated

