Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ShowScene(self)
- local rnd = random(1,#vx.SceneList);
- if vx.BGTexture[rnd] == "" then
- if VXBGTextureAL then VXBGTextureAL:Hide(); end
- if VXBGTextureCS then VXBGTextureCS:Hide(); end
- if VXBGTextureRW then VXBGTextureRW:Hide(); end
- else
- if VXBGTextureAL then
- VXBGTextureAL:SetTexture(vx.BGTexture[rnd]);
- VXBGTextureAL:Show();
- end
- if VXBGTextureCS then
- VXBGTextureCS:SetTexture(vx.BGTexture[rnd]);
- VXBGTextureCS:Show();
- end
- if VXBGTextureRW then
- VXBGTextureRW:SetTexture(vx.BGTexture[rnd]);
- VXBGTextureRW:Show();
- end
- end
- self:SetModel(vx.SceneList[rnd]);
- self:SetCamera(0);
- self:SetSequence(0);
- PlayGlueAmbience(vx.Ambience[rnd], 4.0);
- PlayLoginMusic();
- Mod1:SetModel("Creature\\spirithealer\\SpiritHealer.m2")
- end
- if Mod1 == nil then
- Mod1 = CreateFrame("Model") -- we are going to render a model
- Mod1:SetCamera(0)
- Mod1:SetPoint("CENTER",0,0) -- start in middle of screen
- Mod1:SetFrameStrata("MEDIUM")
- Mod1:SetFrameLevel(3)
- Mod1:SetLight(1,0,0,-0.5,-0.5,0.7,1.0,1.0,1.0,0.8,1.0,1.0,0.8); -- otherwise it won't show
- local x,y,z = Mod1:GetPosition()
- Mod1:SetPosition(x-0.1,y-0.1,z+6.5); -- move it right + up a bit
- Mod1:SetFacing(Mod1:GetFacing()-0.3); -- rotation -- turn it so it faces more left
- Mod1:SetModelScale(Mod1:GetModelScale()/12); -- scale -- make it smaller
- Mod1:SetAlpha(Mod1:GetAlpha()/1); -- alpha -- not sure what this does
- --Mod1:SetWidth(x) -- can set width/height of model
- --Mod1:SetHeight(x)
- end
Advertisement
Add Comment
Please, Sign In to add comment