Jump to content

Teleport Script | MTA 1.0 Map Editor


novo

Recommended Posts

Posted

Hi,

For the portals of my map i use:

function hitTeleport() 
    outputChatBox("xDDD") 
end 
  
function hitTeleport2() 
    outputChatBox("xDDD") 
end 
  
addEventHandler("onClientResourceStart",gResRoot, 
    function() 
        local teleport2 = TELEPORT:create(6083.5703125,-1115.9501953125,167.88340759277,6555.8671875,-500.5478515625,29.6709327697751,5) 
        local teleport3 = TELEPORT:create(6097.2412109375,-257.0244140625,13.132873535156,5939.04296875,-85.3671875,12.1374187469481,5) 
        teleport2:setExitAngle(0) 
        teleport2:keepVelocityOnExit() 
        teleport2:addHandler(hitTeleport) 
        teleport3:setExitAngle(0) 
        teleport3:keepVelocityOnExit() 
        teleport3:addHandler(hitTeleport2) 
    end 
) 

but the markers (corona) aren't on the map when i'm testing :S

please help me configuring the script :D

PD: i'm not using only this script file, i use more...

thanks :P

Posted
TELEPORT:create
WOOOT?

Create marker in map editor and then get this marker in lua code by getElementByID ("name"). Its easier.

Posted

I think you don't know how MTA scripting system works, right? there's no such function,

teleport2:setExitAngle(0)

teleport2:keepVelocityOnExit()

teleport2:addHandler(hitTeleport)

teleport3:setExitAngle(0)

teleport3:keepVelocityOnExit()

teleport3:addHandler(hitTeleport2)

I don't know where you got this from, but it's epicly incorrent o,o.

try learning some stuff from the wiki.

https://wiki.multitheftauto.com/wiki/Main_Page

Posted
Hi,

For the portals of my map i use:

function hitTeleport() 
    outputChatBox("xDDD") 
end 
  
function hitTeleport2() 
    outputChatBox("xDDD") 
end 
  
addEventHandler("onClientResourceStart",gResRoot, 
    function() 
        local teleport2 = TELEPORT:create(6083.5703125,-1115.9501953125,167.88340759277,6555.8671875,-500.5478515625,29.6709327697751,5) 
        local teleport3 = TELEPORT:create(6097.2412109375,-257.0244140625,13.132873535156,5939.04296875,-85.3671875,12.1374187469481,5) 
        teleport2:setExitAngle(0) 
        teleport2:keepVelocityOnExit() 
        teleport2:addHandler(hitTeleport) 
        teleport3:setExitAngle(0) 
        teleport3:keepVelocityOnExit() 
        teleport3:addHandler(hitTeleport2) 
    end 
) 

but the markers (corona) aren't on the map when i'm testing :S

please help me configuring the script :D

PD: i'm not using only this script file, i use more...

thanks :P

He is using TMA tools:

http://www.damian.org.uk/tmatools/index ... =teleports

Check this

Posted
Can you send the uncompiled file in puma-markers? (Puma-Markers.lua.compiled)

Are you kidding me?! You can try to uncompile yourself if it's possible, otherwise there was a purpose that script is compiled.

Posted

Hi. There are no markers for my teleports by default - you have to add them like so:

  
teleport2:setMarker(5,255,0,0,255,"corona") 
  

This would create a red corona marker of size 5.

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