XetaQuake Posted January 30, 2008 Share Posted January 30, 2008 hi, i want to change the class selection camera (from cdm) in a interior, waht is the snip to make this? i have tried: <camera lookX="2494.5971679688" lookY="-1673.1807861328" lookZ="13.335947036743" posX="1216.5860595703" posY="-16.130620956421" posZ="1001.9649658203" [b]interior="2"[/b]/> but the cam is not in the interior anybody help? Link to comment
XetaQuake Posted January 30, 2008 Author Share Posted January 30, 2008 Pleas help me ;/ with lua i found "SetInterior" in the wiki, but i will make it in a .map Say me the code to set a spawn screen camera (from cdm) in a interior (for .map), pleas Link to comment
lil Toady Posted January 30, 2008 Share Posted January 30, 2008 well, it's not just that, the script has to be able to parse the interior arg. You'll have to edit the script Link to comment
XetaQuake Posted January 30, 2008 Author Share Posted January 30, 2008 hmm, not just that? i have no idea what i must edit on the script Link to comment
XetaQuake Posted January 30, 2008 Author Share Posted January 30, 2008 that the world plays on the interiors durring the class selection or waht? Link to comment
Hedning Posted January 30, 2008 Share Posted January 30, 2008 (edited) getElementByType http://development.mtasa.com/index.php? ... entsByType ex: for k,v in ipairs(getElementsByType ( "cylinder" )) do markerGrav[k] = {} markerGrav[k].red = getElementData ( v, "red" ) markerGrav[k].green = getElementData ( v, "green" ) markerGrav[k].blue = getElementData ( v, "blue" ) markerGrav[k].cylinder = {} for i,j in ipairs(getChildren ( v, "cylinder" )) do markerGrav[k].cylinder[i] = {} markerGrav[k].cylinder[i].size = getElementData( j, "size" ) markerGrav[k].cylinder[i].alpha = getElementData( j, "alpha" ) markerGrav[k].cylinder[i].grav = getElementData( j, "grav" ) -- markerGrav[k].cylinder[i].chat = getElementData( j, "chat" ) end --position markerGrav[k].position = {} for i,j in ipairs(getChildren ( v, "position" )) do markerGrav[k].position[i] = {} markerGrav[k].position[i].posX = getElementData ( j, "posX" ) markerGrav[k].position[i].posY = getElementData ( j, "posY" ) markerGrav[k].position[i].posZ = getElementData ( j, "posZ" ) local marker = createMarker ( markerGrav[k].position[i].posX, markerGrav[k].position[i].posY, markerGrav[k].position[i].posZ, "cylinder", markerGrav[k].cylinder[i].size, markerGrav[k].red, markerGrav[k].green, markerGrav[k].blue, markerGrav[k].cylinder[i].alpha ) and in my map file: These are the children ---> These are the children ---> Edited January 30, 2008 by Guest Link to comment
XetaQuake Posted January 30, 2008 Author Share Posted January 30, 2008 oha that says noting to me, i need a "task" with declaration //edit: ah you have edit your last post but this is not a static camera for the spawnscreen i think, i dont understand the "cylinder", the code and what its make can you pleas so good and explain me your nice script? Link to comment
XetaQuake Posted January 31, 2008 Author Share Posted January 31, 2008 And when i try <camera lookX="2494.5971679688" lookY="-1673.1807861328" lookZ="13.335947036743" posX="1216.5860595703" posY="-16.130620956421" posZ="1001.9649658203" interior="2"/> I can hear the sound of the scripclub, but i cant see the club (because i am not in the interior) That is my problem Link to comment
XetaQuake Posted January 31, 2008 Author Share Posted January 31, 2008 sorry i dont will spam but i think the thread is sunk i want to have the spawn-screen-camera-view in a interior, and it will be great when i only must change thinks in the .map file and when i must edit/add lua scripts pleas explain it to me Link to comment
XetaQuake Posted February 3, 2008 Author Share Posted February 3, 2008 can nobody help me? or give me a little exemplar from a spawn-screen with a background camera that shows in a interior? i am currently learning LUA, but at this time i am still a nooby Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now