Signature
Map_Restart([save persistent])
Parameters
| Name | Required? | Details |
|---|---|---|
| save persistent | Optional | if true then player info is retained |
Example (from Treyarch's docs)
Map_Restart( true )
Real uses in BO3's scripts
Called 8 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 6433
map_restart(1); - scripts/zm/gametypes/_globallogic.gsc, line 1344
map_restart(1); - scripts/mp/gametypes/_globallogic.gsc, line 2143
map_restart(1); - scripts/cp/_skipto.gsc, line 1194
map_restart(); - scripts/cp/gametypes/_globallogic.gsc, line 1758
map_restart(1);
Related built-ins
- SetAnimRestart()See "SetAnim.
- MissionRestart()Restarts the mission, which might take you to a different BSP if this is a sublevel
- SetAnimKnobRestart()See "SetAnim.
- SetAnimKnobAllLimitedRestart()See "SetAnim.
- SetAnimKnobAllRestart()See "SetAnim.
- SetAnimKnobLimitedRestart()See "SetAnim.
- SetAnimLimitedRestart()See "SetAnim.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).