Advertisement
snake5

generated prefab script

May 19th, 2016
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.  
  2. function Create_Player( level )
  3. {
  4.     obj = level.CreateGameObject().
  5.     {
  6.         name = "Player",
  7.         id = null,
  8.         localPosition = vec3(0,0,0),
  9.     };
  10.     bhvr = obj.AddBehavior( "chr", "TSCharacter" ).
  11.     {
  12.     };
  13.     bhvr = obj.AddBehavior( "ctrl_player", "TSPlayerController" ).
  14.     {
  15.     };
  16.     return obj;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement