Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Create_Player( level )
- {
- obj = level.CreateGameObject().
- {
- name = "Player",
- id = null,
- localPosition = vec3(0,0,0),
- };
- rsrc = obj.AddResource( "test", 2 ).
- {
- "type" = 1,
- "enabled" = true,
- "hasShadows" = true,
- "color" = vec3(0.372549, 0.564475, 1),
- "intensity" = 5.476,
- "range" = 3.204,
- "power" = 1.332,
- "localMatrix" = mat4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0.846, 1),
- "matrixMode" = 0,
- "cookieTexture" = "",
- "isStatic" = false,
- };
- bhvr = obj.AddBehavior( "chr", "TSCharacter" ).
- {
- };
- bhvr = obj.AddBehavior( "ctrl_player", "TSPlayerController" ).
- {
- };
- return obj;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement