SlashCo Wiki

SlashCo.CreateGasCan

 Entity SlashCo.CreateGasCan( Vector pos, Angle ang )

Description

Spawns a gas can at the specified position and angle.
Returns nil if the gas can entity could not be created.

Arguments

1Vector pos

The position where the gas can should be spawned.

2Angle ang

The angles the gas can should be spawned with.

Returns

1Entity ent

The created gas can entity, or nil if creation failed.