Advertisement
snake5

generated prefab script +2

May 23rd, 2016
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.13 KB | None | 0 0
  1. function Create_Player( level )
  2. {
  3.     item_6502C88B0F87C54A9F3CB55979D54AEC = obj = level.CreateGameObject().
  4.     {
  5.         name = "Player",
  6.         id = null,
  7.         localPosition = vec3(0,0,0),
  8.     };
  9.     item_70CD100C3E4B50438077AD8E8929D1BD = obj.AddBehavior( "chr", "TSCharacter" ).
  10.     {
  11.     };
  12.     item_8AC87AD318A80D41BC661DCC6C809FCD = obj.AddBehavior( "ctrl_player", "TSPlayerController" ).
  13.     {
  14.     };
  15.     return obj;
  16. }
  17.  
  18.  
  19. function Create_Button( level )
  20. {
  21.     item_B176FCD7C0C5704D91793C9EAB561F1F = obj = level.CreateGameObject().
  22.     {
  23.         name = "Button",
  24.         id = null,
  25.         localPosition = vec3(0,0,0),
  26.     };
  27.     item_07F988F2C8E54C409D35D9D75C36CB11 = obj.AddResource( "mesh", 1 ).
  28.     {
  29.         "mesh" = "meshes/props/button0.ssm",
  30.         "localMatrix" = mat4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
  31.         "matrixMode" = 0,
  32.         "lightingMode" = 2,
  33.         "visible" = true,
  34.         "isStatic" = true,
  35.         "lmQuality" = 1,
  36.         "castLMS" = true,
  37.     };
  38.     item_7DB439594376AE42AF253868577DC188 = obj.AddBehavior( "blink", "BhMeshBlink" ).
  39.     {
  40.         "enabled" = true,
  41.         "rsrc" = null,
  42.         "speed" = 1,
  43.     };
  44.     item_7DB439594376AE42AF253868577DC188.rsrc = item_07F988F2C8E54C409D35D9D75C36CB11;
  45.     return obj;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement