Here you can find answered ScriptAPI topics.
-
-
Use BetaHub for suggestions and bug reports for SFD!
SFD has moved the suggestions and bug tracking to use BetaHub instead.
Use the link below to see Superfighters Deluxe and see current suggestions and current bug reports.
If you want to see your (old) idea/suggestion in this forum in BetaHub, please re-register it in BetaHub to keep it...
- 0 Replies
- 40426 Views
-
Last post by Gurt
Sun Feb 15, 2026 4:00 pm
-
-
The official Discord channel
Replies: 3
by
Hjarpe » Mon Nov 23, 2020 7:42 pm » in
General
First post
Attention superfighters!
Step right up, come on in, and join the super-official MythoLogic Interactive Discord server!
There are topics for Superfighters Deluxe, map-making, bug reports and feedback, excellent memes, as well as upcoming games like Filcher and Barbarian Odyssey.
Link:
It's like...
Last post
Woah, very nice! So many people have been asking around for this and now it finally exists.
- 3 Replies
- 384050 Views
-
Last post by tilt56
Mon Nov 23, 2020 11:42 pm
-
-
Forum rules
by
admin » Sun Feb 28, 2016 2:08 pm » in
General
Posting in any part of the forum will require you to follow these rules.
Breaking any of these rules will get you a warning, which will be recorded, or get your account locked depending on the severity of the post.
1) Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening,...
- 0 Replies
- 379349 Views
-
Last post by admin
Sun Feb 28, 2016 2:08 pm
-
-
New to scripting.
Replies: 1
by
ClockworkDice » Tue Nov 08, 2016 2:55 am
First post
Hello, so I'm interested in getting into scripting and I'm wondering about a couple of things. #1: I am not new to programming but I am new to C#. I know python and I'm wondering if there is a way to use it as the language for m scripts, if not I'd like to know if anyone has any good resources they...
Last post
Hi ClockWorkDice!
I'm always glad to have as many coders as possible here.
You can find the awesome Script Api_ in the installation fodler, or easily opening map editor and script window and pressing F1.
To make standalone scripts, you usually need to use the method OnStartup(). It is called like...
- 1 Replies
- 2330 Views
-
Last post by Motto73
Tue Nov 08, 2016 9:24 am
-
-
How to "tag" scripts?
Replies: 1
by
Motto73 » Mon Oct 31, 2016 9:40 am
First post
Hi guys!
I want to ask the coders or Gurt how to tag the script like there is the Teamrotation in Blurry's server.
Nowadays the scripts i have seen shows just unknown , but here you can see (Rotates between different team configurations) .
Any ideas?
Last post
Click on Insert Header and the tag template will show up:
/*
* author: unknown
* description: Short description here.
*/
- 1 Replies
- 2473 Views
-
Last post by nerdist
Mon Oct 31, 2016 12:58 pm
-
-
Bullet shells are not detected by script
Replies: 1
by
nerdist » Sun Oct 16, 2016 3:19 pm
First post
when I try to track bullet shells coming from reloads by AreaTrigger or GetObjectsByName() method it works fine on map editor but when you try it in game server the bullets appear but the script doesn't detect it !
I also enabled my effects quality to max. Anyone got any idea why that happens ?
Last post
Shells are visual only kind of objects and are not synced between server/client at all. This is by design and you can't influence them through the ScriptAPI.
- 1 Replies
- 2487 Views
-
Last post by Gurt
Sun Oct 16, 2016 4:43 pm
-
-
Parts of code executed sometimes
Replies: 1
by
JakSparro98 » Thu Oct 06, 2016 4:31 pm
First post
The script works as intended in editor mode but when I test in a play, the script continues executing code but discontinuously.
Here is the script, activate it by pressing ALT and D, if you keep testing you will notice the counter will still monitoring the script, but sometimes the jump isn't...
Last post
SetLinearVelocity() on players isn't recommended through ScriptAPI alone as the velocity can be overriden depending on what the player is doing at the moment. You can force the positional update better by calling SetWorldPosition() on the player before/after applying the velocity.
- 1 Replies
- 2325 Views
-
Last post by Gurt
Mon Oct 10, 2016 6:44 pm
-
-
- 5 Replies
- 4877 Views
-
Last post by The_JOKER
Fri Sep 16, 2016 1:43 pm
-
-
need script to enable button on team 2 only
Replies: 10
by
The_JOKER » Tue Sep 13, 2016 9:06 am
First post
I need a script to make the button only visible on team 2
not for team 1...
I was wondering is it possible with script?
Last post
No it's not possible. But see the previously answers for how to only let the button work for team 2 and not team 1.
- 10 Replies
- 7854 Views
-
Last post by Gurt
Thu Sep 15, 2016 6:05 pm
-
-
Script request
Replies: 21
by
Billy » Fri Aug 12, 2016 8:28 am
First post
I need a script that sets start equipment to a pillow and doesn't allow to change weapons.
If a player throws a pillow, he cant attack until he grabs another one.
Pls tell me if you got any questions
PS.: you will get a small shiny credit in my map ;)
The poster was issued a warning for breaking...
Last post
Im happy whith the script now
- 21 Replies
- 15271 Views
-
Last post by Billy
Wed Aug 31, 2016 11:48 am
-
-
Effect Name?
Replies: 11
by
Hoang Marcel » Sat May 21, 2016 12:55 pm
First post
I need some help with the effects, can anyone give me a list of effect?
Cause I only know BLD, TR_D, EXP, Electric, S_P and CTFX :mrgreen:
Last post
Okay, as long as you feel guilty.
- 11 Replies
- 10303 Views
-
Last post by Hjarpe
Tue Aug 30, 2016 8:50 pm
-
-
Spawn players on teams
Replies: 3
by
DippyDaDewott » Sun Aug 21, 2016 6:01 am
First post
I am wanting to make a map where this is two teams and they have to fight to the death, but i don't know how to make the players spawn with teams set without setting teams hosting a game.
Does anyone have a script for all 4 teams?
Thanks in advance.
Last post
Here is ShutDownMan's scripts
Here is his Script for 4-Teasm system.
- 3 Replies
- 3984 Views
-
Last post by Motto73
Fri Aug 26, 2016 9:22 am
-
-
How to make CPUs jump over obstacles?
Replies: 2
by
Host » Fri Jun 03, 2016 1:00 pm
First post
What's the script for a simple CPU (a zombie) to make them available to jump over obstacles? Like a sandbag. Is this possible? If so, please send me the script here ;)
Last post
Notice that, you need also to set the CustomId of the trigger to a number, like 2 or 3, it depends on the power you would like the bot to jump.
- 2 Replies
- 3165 Views
-
Last post by Motto73
Fri Aug 26, 2016 7:42 am
-
-
cpu scripts
Replies: 3
by
azizguy101 » Thu May 19, 2016 5:36 pm
First post
i joined sfd a few months ago and i like the map editor but when i make a CPU player i can't make him attack. i'm sure this has something to do with scripts and this is my first post so don't judge me and i don't know if there is another forum like this but how do i make CPU's attack? Any replies...
Last post
You should download my template.
- 3 Replies
- 4975 Views
-
Last post by Motto73
Fri Aug 26, 2016 7:26 am
-
-
[Help] Need a Script (To Paralyze Players)
Replies: 1
by
Coghner » Fri Aug 19, 2016 8:01 pm
First post
i was making a map (will post it in the Custom Maps Section when i finish) and i wanted some kind of Script that Paralyze the player for a few seconds. can someone make it for me? idk how to make scripts,i only know how to use them. thx!
The poster of this thread has been issued a warning for...
Last post
Here you go ! this script only needs a trigger with method Paralyze to work. It make the sender a bot for 2 seconds but you can change it as you want
Dictionary users = new Dictionary ();
public void Paralyze(TriggerArgs args){
if (args.Sender is IPlayer){
IPlayer ply = (IPlayer)args.Sender;
if...
- 1 Replies
- 2526 Views
-
Last post by nerdist
Mon Aug 22, 2016 5:02 pm
-
-
Need script Capture point
Replies: 3
by
Fnz » Mon Jun 20, 2016 3:34 pm
First post
the script i want before i even told you what i want i am making a attack and defense map two teams ,team 1 and team 2 , team 2 is the attackers they have to capture one point , team 2 has to stop them now here the script that i want like when team 2 get close from the point the number of loading...
Last post
good armadyl... i was needed this script too... thx!
- 3 Replies
- 3773 Views
-
Last post by The Adventurer
Mon Aug 22, 2016 12:39 am
-
-
How to make BG Solid Tiles?
Replies: 5
by
Player1 » Tue Aug 02, 2016 12:12 am
First post
I'm making a map and I've been trying to get started coding anyways.
I don't know the functions of the map editor yet, because I just started today.
I already have the map basically made, but I have two platforms I'd like to be moving.
Is there a way to make a BG tile a solid tile?
Last post
Well, it is quite obvious, but use the weldobject thing. Write weld to the search box and that's it. There is a box with Select targets or something. Click it and then click the objects you need to weld. To change objects dynamic select it and change Static to Dynamic in the properties!
To get...
- 5 Replies
- 4971 Views
-
Last post by Motto73
Fri Aug 19, 2016 11:46 am
-
-
Need script to destroy human-rockets.
Replies: 4
by
Kawabanga » Fri Jul 22, 2016 9:15 pm
First post
Need script to instantly destroy/explode human-rockets (players ridding a rocket, but not rockets alone, nor players alone). It would be triggered with an area trigger. Thanks for help.
Last post
The problem is that there is no way to search for projectiles entities, they aren't hookable with a pointer because you don't have a IObjectProjectile, for example, and as I said (and Gurt confirmed that) the trigger not see the projectiles so I cannot get the projectile as a Sender(the object that...
- 4 Replies
- 4515 Views
-
Last post by JakSparro98
Thu Jul 28, 2016 11:14 am
-
-
Need script to clear fire from players
Replies: 2
by
Kawabanga » Fri Jul 22, 2016 9:13 pm
First post
Need script to clear fire from players and bots, but preferably not from objects. It would be triggered with an area trigger. Thanks for help.
Last post
It works, thanks!
- 2 Replies
- 2939 Views
-
Last post by Kawabanga
Mon Jul 25, 2016 11:40 pm
-
-
Auto completion text in the script IDE
Replies: 3
by
JakSparro98 » Thu Jul 21, 2016 6:52 pm
First post
I don't think right now there is a shortcut for autocomplete words or display all available methods/attributes for a class when typing.
So I want to ask, there will be an IntelliSense-like system in the script IDE?
Last post
I will not bother with implementing a suggestion box. Not the focus for SFD.
If you want some visual aid I suggest you use Notepad++ with C# language selected. When done in Notepad++ simply copy-paste your code into the Script window. This is how I create smaller scripts.
If you want a full IDE...
- 3 Replies
- 4295 Views
-
Last post by Gurt
Fri Jul 22, 2016 10:26 pm
-
-
turning Iobject
Replies: 1
by
Fnz » Wed Jul 20, 2016 3:08 pm
First post
what i mean for example we have invisible block we all know bullets can't go through it but with a script help we can make bullets go through an invisible block and that is what i want i hope you understood.
Last post
Why would you need that if you can littelary place Invisible Platforms .
2 good things about it:
+It makes a good sound.
+Makes particle effects.
- 1 Replies
- 2476 Views
-
Last post by Creeper
Wed Jul 20, 2016 3:16 pm
-
-
can you play sound in sfd maps
Replies: 2
by
Fnz » Sat Jul 02, 2016 11:06 am
First post
if anyone know how to plsy sounds or music in SFD if it so then give a script Example hope you understood me
Last post
Its possible to change it trought the SFD Files. But its the same as in if you would download a texturepack, but now you download more sounds.
- 2 Replies
- 3433 Views
-
Last post by Creeper
Sat Jul 02, 2016 9:21 pm
-
-
How to make only one camera mode in map?
Replies: 1
by
Katrtlen » Fri Jun 24, 2016 12:30 pm
First post
As the subject says, i don't know how to make a map with locked camera mode...
...
Can anyone help?
Last post
type this script to allow the dynamic camera Only at the start .
public void OnStartup(){
Game.SetAllowedCameraModes(CameraMode.Dynamic);
Game.SetCurrentCameraMode(CameraMode.Dynamic);
}
type this script to allow the Static camera Only at the start .
public void OnStartup(){...
- 1 Replies
- 2601 Views
-
Last post by Armadyl5
Fri Jun 24, 2016 1:08 pm
-
-
Script Commission
Replies: 2
by
Duck » Tue Jun 21, 2016 11:09 pm
First post
Tile type: Area Trigger
On enter method: gives a player 10-25 damage (randomly)
On leave method: multiplies the velocity forces acting on a player by 0.75% (if that's even possible)
For the on leave method I essentially wanted the players to get knocked around further and harder. I know...
Last post
Thanks a lot gwendal!
- 2 Replies
- 2846 Views
-
Last post by Duck
Wed Jun 22, 2016 3:35 am
-
-
Need script to clear all corpse and debris.
Replies: 5
by
Kawabanga » Sat May 21, 2016 2:51 pm
First post
Hi!, I need a script to clear all corpse and debris (is going to be triggered once in a particular moment). Thanks in advance for help.
Last post
public void RemoveBodies(TriggerArgs args){
foreach(IPlayer player in Game.GetPlayers()){
if(player.IsDead){
player.Remove();
}
}
}
this one should work ...
- 5 Replies
- 5020 Views
-
Last post by Armadyl5
Mon Jun 20, 2016 11:12 pm
-
-
Need help making cpu bossy.
Replies: 3
by
Kawabanga » Fri Jun 17, 2016 12:27 am
First post
Hi, besides some fixes to my previous maps I currently work on another one. Its name is Smuggler Joe Hates You All and is ment to be a bossfight. The main difficulty is that I can't give cpu bossy feature like extremely quick regeneration and/or enormous health. I've tried to adapt ShutDownMan's...
Last post
extremely quick regeneration , Check .
enormous health , Check .
- 3 Replies
- 3874 Views
-
Last post by Armadyl5
Mon Jun 20, 2016 10:16 pm
-
-
Script Method
Replies: 3
by
Zere » Tue Jun 07, 2016 5:14 pm
First post
Is there a way to change the script method by entering certain area in the map?
public void Bot(CreateTriggerArgs args){
IPlayer ply = (IPlayer)args.CreatedObject;
ply.SetBotType(BotType.TutorialA);
}
I have this scrip that makes the CPU's attack you automatically when you set the Script Method...
Last post
Thanx a lot guys
- 3 Replies
- 3511 Views
-
Last post by Zere
Tue Jun 07, 2016 11:19 pm
-
-
What's the script?
Replies: 1
by
DoranIsHere » Sat Jun 04, 2016 3:47 pm
First post
Hello, i have seen some sort of scripts that u cant change your camera view.
Does anyone know the script?
If yes, can you tell me?
Thanks
-doran
Last post
Here:
public void OnStartup(){
Game.SetAllowedCameraModes(CameraMode.Dynamic);
Game.SetCurrentCameraMode(CameraMode.Dynamic);
}
- 1 Replies
- 2385 Views
-
Last post by Hoang Marcel
Sat Jun 04, 2016 4:05 pm
Forum permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum