Results 1 to 2 of 2
  1. #1
    Urazfenix88's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    1

    A very good TELEPORT script?

    Hello i have this teleport script

    local PENETRATE = true -- set to 'nil' instead of 'true' if you don't want it to penetrate through walls, etc
    local player_unit = managers.playerlayer_unit()
    local camera = player_unit:camera()
    local mvec_to = Vector3()
    local from_pos = cameraosition()
    mvector3.set( mvec_to, camera:forward() )
    mvector3.multiply( mvec_to, 2000 )
    mvector3.add( mvec_to, from_pos )
    local col_ray = World:raycast( "ray", from_pos, mvec_to, "slot_mask", managers.slot:get_mask( "bullet_impact_targets" ) )
    if col_ray then
    if PENETRATE then
    local offset = Vector3()
    mvector3.set(offset, camera:forward())
    mvector3.multiply(offset, 100)
    mvector3.add(col_ray.hit_position, offset)
    end
    managers.player:warp_to(col_ray.hit_position, player_unit:rotation())
    end

    if managers.hud then
    managers.hud:show_hint( { text = "TELEPORT" } )
    end

    IS not really good because it work sometime...sometime yes..sometime no..i want know if there is other script of teleport very good also where you can change the meteers to teleport you.help

  2. #2
    Zoee's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Here
    Posts
    199
    Reputation
    34
    Thanks
    423
    My Mood
    Angelic
    Quote Originally Posted by Urazfenix88 View Post
    Hello i have this teleport script

    local PENETRATE = true -- set to 'nil' instead of 'true' if you don't want it to penetrate through walls, etc
    local player_unit = managers.playerlayer_unit()
    local camera = player_unit:camera()
    local mvec_to = Vector3()
    local from_pos = cameraosition()
    mvector3.set( mvec_to, camera:forward() )
    mvector3.multiply( mvec_to, 2000 )
    mvector3.add( mvec_to, from_pos )
    local col_ray = World:raycast( "ray", from_pos, mvec_to, "slot_mask", managers.slot:get_mask( "bullet_impact_targets" ) )
    if col_ray then
    if PENETRATE then
    local offset = Vector3()
    mvector3.set(offset, camera:forward())
    mvector3.multiply(offset, 100)
    mvector3.add(col_ray.hit_position, offset)
    end
    managers.player:warp_to(col_ray.hit_position, player_unit:rotation())
    end

    if managers.hud then
    managers.hud:show_hint( { text = "TELEPORT" } )
    end

    IS not really good because it work sometime...sometime yes..sometime no..i want know if there is other script of teleport very good also where you can change the meteers to teleport you.help
    That's the same script I use and it works just fine for me. Minus the Hud Text Display on Screen Part, don't really see the need for it to tell you it teleported when you can obliviously tell when you tele

Similar Threads

  1. Sell steam account, very good one
    By Dritar in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 11-01-2012, 07:24 AM
  2. Warrock very good account :)
    By leonwarren1 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 10-12-2008, 10:08 AM
  3. sell lvl 2 with gold prem and VERY good guns
    By Warning14 in forum Trade Accounts/Keys/Items
    Replies: 5
    Last Post: 03-20-2008, 01:48 PM
  4. trading very good acc for retail code
    By badbull in forum Trade Accounts/Keys/Items
    Replies: 20
    Last Post: 09-14-2007, 10:53 AM
  5. Trade very good runescape bots
    By takahuja in forum Trade Accounts/Keys/Items
    Replies: 2
    Last Post: 06-06-2007, 07:02 AM