Garry's Mod Wiki

ClientsideScene

  CSEnt ClientsideScene( string name, Entity targetEnt )

Description

Creates a scene entity based on the scene name and the entity.

Arguments

1 string name
The name of the scene.
2 Entity targetEnt
The entity to play the scene on.

Returns

1 CSEnt
C_SceneEntity

Example

Plays "I guess you should go with Alyx" line from HL2.

ClientsideScene( "scenes/eli_lab/mo_gowithalyx01.vcd", LocalPlayer() )