Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create some entity
- local hEntity = Entities.CreateByClassname("info_target");
- printl(hEntity.GetScriptScope());
- // prints null, because the script scope doesn't exist yet
- // execute some random function on the ent.
- // this is just to show, that these don't require the script scope
- hEntity.SetName("test");
- printl(hEntity.GetScriptScope());
- // prints null, because SetName() doesn't create the script scope
- hEntity.ValidateScriptScope();
- printl(hEntity.GetScriptScope());
- // prints name of table, because the script scope now exists
Advertisement
Add Comment
Please, Sign In to add comment