Skip to content

AddEntityToScene

Add an entity or create an entity and add it to an existing scene

Argument Data Type Needed Default Description
entity string/object - The entity or the model
scene scene - The scene netid
dict string - The anim dict that the entity will play
name string - The anim name that the entity will play
speed number 4.0
speedMultiplier number -8.0
flag number 1

Dont need to be called every frame


Example
AddEntityToScene("prop_weed_01", scene, "somedict", "somename")

Last update: December 16, 2022
Created: October 31, 2022