Guest User

Untitled

a guest
Jan 11th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. // create some entity
  2. local hEntity = Entities.CreateByClassname("info_target");
  3. printl(hEntity.GetScriptScope());
  4. // prints null, because the script scope doesn't exist yet
  5.  
  6. // execute some random function on the ent.
  7. // this is just to show, that these don't require the script scope
  8. hEntity.SetName("test");
  9. printl(hEntity.GetScriptScope());
  10. // prints null, because SetName() doesn't create the script scope
  11.  
  12. hEntity.ValidateScriptScope();
  13. printl(hEntity.GetScriptScope());
  14. // prints name of table, because the script scope now exists
Advertisement
Add Comment
Please, Sign In to add comment