Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
856 B

  1. print( "Test\n" );
  2. local value = TestReturn();
  3. print("My value = " + value + "\n");
  4. temp <- [ 1, 2, 3, 4 ];
  5. foreach(idx,val in temp)
  6. {
  7. print("index="+idx+" value="+val+"\n");
  8. }
  9. temp[0] = 33;
  10. temp[1] = 34;
  11. temp[2] = 35;
  12. temp[3] = 36;
  13. foreach(idx,val in temp)
  14. {
  15. print("index="+idx+" value="+val+"\n");
  16. }
  17. foreach(idx,val in mytable)
  18. {
  19. print("index="+idx+" value="+val+"\n");
  20. }
  21. print("x = " + mytable.controlpoint_1_vector.x + "\n");
  22. print("y = " + mytable.controlpoint_1_vector.y + "\n");
  23. print("z = " + mytable.controlpoint_1_vector.z + "\n");
  24. local string = "controlpoint_" + 1;
  25. local vectortable = string + "_vector";
  26. local vector = Vector(0,0,0);
  27. if ( vectortable in mytable )
  28. {
  29. print("here\n");
  30. vector = Vector( mytable[vectortable].x, mytable[vectortable].y, mytable[vectortable].z );
  31. }
  32. print("Vector = " + vector + "\n" );