In rtcw cheakpoint flags are used as script trigger, in et the spawn flag can be used in the same way.
Flag scripting from rtcw CP map for refrence:
trigger cp1_blue
{
// Change the objective state internally, so UI can update, etc.
// Allied takes control of checkpoint #1
wm_set_objective_status 1 1
// First update winner based on number of flags held by both teams
trigger game_manager adjustwinner_cp1_blue
// Change the variable within the script so that we can check if someone wins the round
accum 1 set 1
// Some kind of UI pop-up to alert players
wm_announce "Allies take the Submarine Storage Facility!"
// Call function to check if the round has been won
trigger game_manager checkgame_blue
}
trigger cp1_red
{
// Change the objective state internally, so UI can update, etc.
// Axis takes control of checkpoint #1
wm_set_objective_status 1 0
// First update winner based on number of flags held by both teams
trigger game_manager adjustwinner_cp1_red
// Change the variable within the script so that we can check if someone wins the round
accum 1 set 0
// Some kind of UI pop-up to alert players
wm_announce "Axis takes the Submarine Storage Facility!"
// Call function to check if the round has been won
trigger game_manager checkgame_red
}
.......
trigger checkwinner
{
wm_setwinner -1
accum 7 abort_if_equal 0
wm_setwinner 1
accum 7 abort_if_greater_than 0
wm_setwinner 0
}
trigger adjustwinner_cp1_blue
{
accum 7 inc 1
trigger game_manager checkwinner
accum 1 abort_if_not_equal 0
accum 7 inc 1
trigger game_manager checkwinner
}
.....
checkpoint01
{
trigger axis_capture
{
trigger game_manager cp1_red
}
trigger allied_capture
{
trigger game_manager cp1_blue
}
}
.....
Note: the checkpoint make the same script calls as a spawnpoint flag.