Jump to content

What's wrong?


Unique23

Recommended Posts

Heya all!,

I decided to make teleporting system with markers.It's just teleporting people but I want this:

"If someone hits the marker,He have to see a black screen then script have to warp player to somewhere"

It doesn't give any error or warning but I can't see black screen.

Here is the script:

markerinside=createMarker(265.2,1915.7,19,"arrow",1,200,200,200,255,getRootElement()) 
marerinsidecol=createColSphere(264.2,1915.2,17,1) 
markeroutside=createMarker(271.8,1926.8,19,"arrow",1,200,200,200,255,getRootElement()) 
markeroutsidecol=createColSphere(272,1927,17,1) 
  
function warpout(player) 
setElementPosition(player,273,1929,17) 
    fadeCamera(source,false, 2, 255, 255, 255) 
    setTimer(fadeCamera, 3000, 1, source, true, 1.0) 
end 
function warpin(player) 
setElementPosition(player,263,1913,17) 
    fadeCamera(source,false, 2, 255, 255, 255) 
    setTimer(fadeCamera, 3000, 1, source, true, 1.0) 
end 
addEventHandler("onColShapeHit",marerinsidecol,warpout) 
addEventHandler("onColShapeHit",markeroutsidecol,warpin) 

Link to comment

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