Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Can I Get A Flying Script?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
_Batman_Shadow_
Fighter
Fighter
Posts: 57
Joined: Tue Jun 13, 2017 5:29 am
Title: Just A Color
SFD Account: Shinobi(variants)
SFD Alias: Shinobi
Started SFD: Around Pre-A 1.7.3
Gender:

Can I Get A Flying Script?

Post by _Batman_Shadow_ » Fri Jul 14, 2017 5:50 am

I Cant Find a good flying script for anything!!! Please help me!
0 x
*Swish*Cling*Bash*Out Of The Shadows Mudafucka!!!!*Pitter Patter


Noonja

kirill240
Fighter
Fighter
Posts: 14
Joined: Mon Jan 09, 2017 1:01 pm
SFD Account: Mr.A woman's heart

Post by kirill240 » Fri Jul 14, 2017 7:58 pm

You can order this script. Hardly anyone will find a similar script
0 x

Heroes084
Meatbag
Posts: 5
Joined: Sat Dec 17, 2016 10:30 pm
SFD Account: Heroes

Post by Heroes084 » Tue Oct 24, 2017 3:17 am

I hope that this script help you :D

/*
* author: Heroes084
* description: Alt to Fly(Alt para voar)
*/

public void OnStartup(){
IObjectTimerTrigger Timer = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer.SetIntervalTime(50);
Timer.SetRepeatCount(0);
Timer.SetScriptMethod("Fly");
Timer.Trigger();
}

public void Fly(TriggerArgs args){
foreach( IPlayer ply in Game.GetPlayers() ) {
if(ply.IsWalking && ply.IsInMidAir && ply.FacingDirection == 1){
ply.SetLinearVelocity(new Vector2(3,4));
}
if(ply.IsWalking && ply.IsInMidAir && ply.FacingDirection == -1){
ply.SetLinearVelocity(new Vector2(-3,4));
}
}
}
3 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest