Advertisement
SetaKat

Xray Extensions - CoP lua_help_extension.script

Nov 14th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. List of the classes exported to LUA
  2.  
  3. C++ class CUIListBox {
  4. function GetMainInputReceiver(); -- acts like SoC/CS level.main_input_receiver() function
  5. };
  6.  
  7. C++ class CUIStatic {
  8. function SetTextureRect(FRect*); -- Sets texture rectangle - exists in vanilla, but must be broken in some way to warrent a fix
  9. function SetHeading(FRect*); -- Sets the rotation of the texture apparently. Rotation is specified in radians in x1 property
  10. };
  11.  
  12. End of list of the classes exported to LUA
  13.  
  14.  
  15. List of the namespaces exported to LUA
  16.  
  17.  
  18. namespace {
  19. function log1(string); -- Logs a message to console
  20. function flush1(); -- Writes the current console buffer to file
  21.  
  22. namespace level {
  23. function get_target_dist() number; -- Gets the distance to the object we are looking at
  24. function get_target_obj() object; -- Returns the current object that looks at us
  25. };
  26. };
  27. End of list of the namespaces exported to LUA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement