Garry's Mod Wiki

Entity:PlayScene

Entity:PlayScene( string scene, number delay = 0 )

Description

Makes the entity play a .vcd scene.

Arguments

1 string scene
Filepath to scene
2 number delay = 0
Delay in seconds until the scene starts playing.

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.

Page Links


Special Pages


Wikis

?

Render Time: 26ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 8
Render Body 0
Render Sidebar 10