GSC reference › Built-in
VideoStart()
Built-in (engine)
Server
Start a video for playback on an in-game surface
Signature
VideoStart(<name>, [loop])
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | name of movie to play. do not add a file suffix (like .mp4) |
| loop | Optional | Set this to true if the movie should automatically restart when it reaches the end. |
Example (from Treyarch's docs)
VideoStart( "MyAwesomeMovie" )
Real uses in BO3's scripts
Called 16 times in the decompiled scripts. A few, zombies first:
- scripts/cp/cp_doa_bo3.gsc, line 974
videostart("cp_doa_bo3_endgame"); - scripts/cp/cp_mi_sing_biodomes_cloudmountain.gsc, line 1503
videostart("cp_biodomes_env_serverhackvid4looping", 1); - scripts/cp/cp_mi_sing_sgen_enter_silo.gsc, line 51
videostart("cp_sgen_env_LobbyMovie", 1); - scripts/cp/cp_mi_sing_sgen_pallas.gsc, line 447
videostart("cp_sgen_env_diazserver", 1); - scripts/cp/cp_mi_sing_sgen_testing_lab_igc.gsc, line 130
videostart("cp_sgen_env_dniroom", 1);
Related built-ins
- StartRagdoll()Begin ragdoll physics for this entity.
- StrStartsWith()Returns true/false if <string> starts with <substring>.
- SetAnimRestart()See "SetAnim.
- StartPath()Starts the vehicle following this path.
- GetStartOrigin()Get the starting origin for an animation, in world coordinates, given its current position, and angles
- GiveStartAmmo()Give the weapon initial ammo
- WeaponLockStart()Begins player's weapon lockon sequence (hud effects, etc).
- Map_Restart()Restarts the map
- StartCameraTween()Start a camera tween, call this right before a camera pop to do a blend.
- GetStartAngles()Get the starting angles for an animation, in world coordinates, given its current position, and angles
- GetFractionStartAmmo()Give fraction of start ammo to the player for the weapon
- ShouldStartTraversal()Returns true/false if actor should start traversal
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).