CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Black Ops 3 GSC Managed Code List
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CabCon" data-source="post: 14351" data-attributes="member: 1"><p>[USER=18591]@Sergiosvdev[/USER] Thank you I was able to fix my function, I will give credits to you!</p><p><strong></strong></p><p><strong>Teleport Function</strong></p><p>void <player> func_teleportWithSelector(<client>)</p><p>Example</p><p>self func_teleportWithSelector(getPlayers[0]);</p><p></p><p>[CODE]</p><p>//includes:</p><p>#using scripts\mp\killstreaks\_airsupport;</p><p>#precache( "locationselector", "compass_objpoint_helicopter" );</p><p></p><p>//Function</p><p>function func_teleportWithSelector(player)</p><p>{</p><p> currentWeapon = self GetCurrentWeapon();</p><p> self beginLocationSelection("map_mortar_selector");</p><p> </p><p> self DisableOffhandWeapons();</p><p> self GiveWeapon(GetWeapon("killstreak_remote_turret"));</p><p> self SwitchToWeapon(GetWeapon("killstreak_remote_turret"));</p><p></p><p> self.selectingLocation = true;</p><p> location = self func_waittill_confirm_location();</p><p></p><p> if ( !isdefined( location ) )</p><p> {</p><p> self IPrintLn("^1Not able to get any origin!");</p><p> return false;</p><p> }</p><p></p><p> player SetOrigin( location );</p><p> self EndLocationSelection();</p><p> self EnableOffhandWeapons();</p><p> self SwitchToWeapon(currentWeapon);</p><p> self.selectingLocation = undefined;</p><p></p><p> self iprintln("You teleported ^2"+player.name);</p><p>}</p><p>function func_waittill_confirm_location()</p><p>{</p><p> self endon( "emp_jammed" );</p><p> self endon( "emp_grenaded" );</p><p></p><p> self waittill( "confirm_location", location );</p><p> </p><p> return location;</p><p>}</p><p>[/CODE]</p><p></p><p><strong>Credits</strong></p><p>[USER=1]@CabCon[/USER]</p><p>[USER=18591]@Sergiosvdev[/USER]</p></blockquote><p></p>
[QUOTE="CabCon, post: 14351, member: 1"] [USER=18591]@Sergiosvdev[/USER] Thank you I was able to fix my function, I will give credits to you! [B] Teleport Function[/B] void <player> func_teleportWithSelector(<client>) Example self func_teleportWithSelector(getPlayers[0]); [CODE] //includes: #using scripts\mp\killstreaks\_airsupport; #precache( "locationselector", "compass_objpoint_helicopter" ); //Function function func_teleportWithSelector(player) { currentWeapon = self GetCurrentWeapon(); self beginLocationSelection("map_mortar_selector"); self DisableOffhandWeapons(); self GiveWeapon(GetWeapon("killstreak_remote_turret")); self SwitchToWeapon(GetWeapon("killstreak_remote_turret")); self.selectingLocation = true; location = self func_waittill_confirm_location(); if ( !isdefined( location ) ) { self IPrintLn("^1Not able to get any origin!"); return false; } player SetOrigin( location ); self EndLocationSelection(); self EnableOffhandWeapons(); self SwitchToWeapon(currentWeapon); self.selectingLocation = undefined; self iprintln("You teleported ^2"+player.name); } function func_waittill_confirm_location() { self endon( "emp_jammed" ); self endon( "emp_grenaded" ); self waittill( "confirm_location", location ); return location; } [/CODE] [B]Credits[/B] [USER=1]@CabCon[/USER] [USER=18591]@Sergiosvdev[/USER] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Black Ops 3 GSC Managed Code List
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top