Jump to content

set interior for camera in .map file


XetaQuake

Recommended Posts

Posted

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?

Posted

well, it's not just that, the script has to be able to parse the interior arg. You'll have to edit the script

Do not PM me, im not going to read it anyway.

Posted (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 by Guest

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...