Jump to content

WTF IS WRONG WITH THIS INTERIOR???


xXMADEXx

Recommended Posts

Posted (edited)

Lets just say, in this interior (int 5) the camra looks like that, i have no idea wtf is wrong with it either... :(

mtascreen20130310001814.png

code:

local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) 
local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) 
setElementInterior(outMarker,5) 
  
function teleport(player) 
    if ( source == intoMarker and getElementType(player) == "player") then 
        setElementPosition(player,375.7626953125, -131.25, 1002) 
        setElementInterior(player,5) 
    elseif ( source == outMarker and getElementType(player) == "player") then 
        setElementPosition(player,2099.5078125, -1806.6220703125, 14) 
        setElementInterior(player,0) 
    end 
end 
addEventHandler("onMarkerHit", root, teleport) 

Edited by Guest
Posted
local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) 
local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) 
setElementInterior(outMarker,5) 
  
function teleport( hitElement ) 
    if getElementType( hitElement ) == "player" then 
        if ( source == intoMarker ) then 
            setElementPosition(hitElement,375.7626953125, -131.25, 1002) 
            setElementInterior(hitElement,5) 
        elseif ( source == outMarker ) then 
            setElementPosition(hitElement,2099.5078125, -1806.6220703125, 14) 
            setElementInterior(hitElement,0) 
        end 
    end 
end 
  
addEventHandler("onMarkerHit", root, teleport) 

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

Try to lower the setElementPosition of intoMarker's z pos by 1. like use 1001 instead of 1002

local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) 
local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) 
setElementInterior(outMarker,5) 
  
function teleport( hitElement ) 
         if ( source == intoMarker ) and (getElementType( hitElement ) == "player") then 
            setElementPosition(hitElement,375.7626953125, -131.25, 1001) -- this one, changed the z pos to 1001 
            setElementInterior(hitElement,5) 
        elseif ( source == outMarker ) and (getElementType( hitElement ) == "player") then 
            setElementPosition(hitElement,2099.5078125, -1806.6220703125, 14) 
            setElementInterior(hitElement,0) 
        end 
    end 
end 
  
addEventHandler("onMarkerHit", root, teleport) 

Posted

Maybe it's from the coordinates, Recheck theme ..

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

The script works fine, the problem is on your side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Try turning on antialiasing.

The problem occurs with every shader effect that uses depth buffer access (mainly depth of field and water ref in the shader panel).

I make shaders .. mainly. My community resources

I'll do some custom stuff, I'm open for cooperation.

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