follow the brackets. A section of script typically looks like this:
//Main Gate
maingate_script
{
spawn
{
wait 200
constructible_class 3
}
death
{
setstate sally_port invisible //Kills side team door when main gate is blown
wm_announce "Axis have breached the Main Gate"
wm_objective_status 1 0 1
wm_objective_status 1 1 2
}
}
The first line, or anything that follows // is a comment
Entire sections or subsections of script are started by { and ended by }
maingate_script is the scriptname, which is called by the func_constructible entity
spawn and death are subroutines of maingate_script that tell the game what to do with the maingate at gamestart (spawn) and when it’s blown up (death)
Then again, this was all explained in scripting for newbies too.