Entity/PlayScene

From Garry's Mod
Jump to: navigation, search
 Entity:PlayScene( )

Contents

Description

Makes the entity play a .vcd scene.

Arguments

string scene

Filepath to scene

Arguments

number delay=0

Delay in seconds until the scene starts playing.

Examples

Example

Makes the entity that the player 1 is looking at play the "Welcome to City 17" speech.

local ent = Entity( 1 ):GetEyeTrace().Entity

if( IsValid( ent ) ) then
	npc:PlayScene( "scenes/breencast/welcome.vcd" )
end

Output:

The entity plays the scene.
Personal tools
Navigation