Jump to content

set interior for camera in .map file


XetaQuake

Recommended Posts

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 post

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 by Guest
Link to post

oha :( that says noting to me, i need a "task" with declaration

//edit: ah you have edit your last post :D

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 post

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 post

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 post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...