GSC reference › Built-in
CaptureFrame()
Built-in (engine)
Client
Gfx
Captures the current frame into the given code image - he image had to be already created with CreateSceneCodeImage()
Signature
CaptureFrame(<localClientNum>, <name>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | |
| name | Required | The code image name |
Example (from Treyarch's docs)
CaptureFrame( self.localClientNum, "freezeFrame" )
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/shared/postfx_shared.csc, line 194
captureframe(localclientnum, self.captureimagename); - scripts/shared/postfx_shared.csc, line 233
captureframe(localclientnum, self.captureimagename); - scripts/shared/scene_shared.csc, line 1515
captureframe(localclientnum, codeimagename); - scripts/shared/scene_shared.csc, line 1738
captureframe(localclientnum, codeimagename);
Related built-ins
- GetAnimFrameCount()Get total number of frames for the given animation.
- GetAnimCurrFrameCount()Get current frame for the given animation when its running.
- StopFX()Stops a given fx.
- DeleteFX()Delete a spawned effect.
- SetUkkoScriptIndex()Set ukko index from script.
- SetFilterPassConstant()Sets the filter pass constant
- SetFXIgnorePause()Tells an effect whether or not to respect a paused world state.
- SetFilterPassEnabled()Sets the filter pass enabled or disabled
- PlayViewmodelFX()
- SetFilterPassMaterial()Sets the filter pass material
- SetLitFogBank()Sets which bank to use for all lit fog volumes with matching script id
- SetPBGActiveBank()Set PBG bank mask from script.
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).