function Create_Player( level )
{
item_6502C88B0F87C54A9F3CB55979D54AEC = obj = level.CreateGameObject().
{
name = "Player",
id = null,
localPosition = vec3(0,0,0),
};
item_70CD100C3E4B50438077AD8E8929D1BD = obj.AddBehavior( "chr", "TSCharacter" ).
{
};
item_8AC87AD318A80D41BC661DCC6C809FCD = obj.AddBehavior( "ctrl_player", "TSPlayerController" ).
{
};
return obj;
}
function Create_Button( level )
{
item_B176FCD7C0C5704D91793C9EAB561F1F = obj = level.CreateGameObject().
{
name = "Button",
id = null,
localPosition = vec3(0,0,0),
};
item_07F988F2C8E54C409D35D9D75C36CB11 = obj.AddResource( "mesh", 1 ).
{
"mesh" = "meshes/props/button0.ssm",
"localMatrix" = mat4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1),
"matrixMode" = 0,
"lightingMode" = 2,
"visible" = true,
"isStatic" = true,
"lmQuality" = 1,
"castLMS" = true,
};
item_7DB439594376AE42AF253868577DC188 = obj.AddBehavior( "blink", "BhMeshBlink" ).
{
"enabled" = true,
"rsrc" = null,
"speed" = 1,
};
item_7DB439594376AE42AF253868577DC188.rsrc = item_07F988F2C8E54C409D35D9D75C36CB11;
return obj;
}
Comments