Here you can find answered ScriptAPI topics.
-
-
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
- 4815 Views
-
Last post by admin
Sun Feb 28, 2016 2:08 pm
-
-
The Script Workshop
Replies: 20
by
_Batman_Shadow_ » Sun Nov 05, 2017 10:31 pm
First post
Im sure if you were around in the pre-alpha days,you remember that there were alot of cool and fun scripts to play with,specifically,the DBZ one made by Xhomie,with an abundance of others,including Extremely fun maps.My request is that can some one remake the DBZ script,it would be greatly...
Last post
what about the hellraiser script, can anybody reply it here?
- 20 Replies
- 1289 Views
-
Last post by jlo
Sat Mar 24, 2018 6:53 pm
-
-
I need help regarding the scripting
Replies: 7
by
Marsuplexi » Sun Feb 18, 2018 5:52 pm
First post
First of all I'm pretty new to this game and I can't make my own scripts. I don't like asking this but can someone make me a spawn objects script that spawns specific objects in a random order? Example: spawn: barrel, box, gun, barrel, monitor, explosive barrel etc. in a random order and in the...
Last post
:lol: tnx bro ;)
- 7 Replies
- 309 Views
-
Last post by Islem mahmoud
Sun Mar 11, 2018 1:20 pm
-
-
script blockbullets
Replies: 2
by
Pabloxino » Fri Feb 23, 2018 3:20 am
First post
HI, the script blockbullets dont works, it dont seems in the game but is in the folder scripts like the others.
PLS, Can someone send me the script fixed? i really like it so pls.
Last post
Hoang i know, but the script is like it wasnt with the others scripts but it is.
- 2 Replies
- 129 Views
-
Last post by Pabloxino
Fri Feb 23, 2018 10:36 pm
-
-
[Help 2] How to make function sleep for a period amount of time?
Replies: 5
by
Pixir » Thu Feb 08, 2018 1:11 am
First post
public void Spawn(TriggerArgs args){
Vector2 worldPosition = Vector2.Zero;
Random rnd = new Random();
int y = rnd.Next(-200,200);
int x = rnd.Next(-200,200);
IObject Crate = (IObject)Game.CreateObject( HangingCrateHolder ,new Vector2(y,x), 0f);
Crate.SetBodyType(BodyType.Static);...
Last post
Thank you it worked :D
- 5 Replies
- 171 Views
-
Last post by Pixir
Fri Feb 09, 2018 10:57 am
-
-
Question: What's the difference between TutorialMeleeA, ZombieA and ZombieB, and how they can be used in SFD ?
Replies: 2
by
Dumby Eggy » Sun Jan 07, 2018 9:56 pm
First post
As the question says, I want to know what is the difference between each of them, how each one exactly works and how can I use them in the Map editor. Also, how to handle them by scripts (beacuse I forgot it).
Thank you for your help
Last post
ZombieA and ZombieB both needs a path grid in order to navigate. Path grids can't be designed in custom maps in the current version of SFD as we still have work to do for the path grid.
Bots for custom maps are not available in the Beta version of the game.
- 2 Replies
- 210 Views
-
Last post by Gurt
Mon Jan 08, 2018 6:12 pm
-
-
Wizard Mod
Replies: 1
by
jlo » Wed Dec 27, 2017 3:05 am
First post
Whenever I load up the script it says Script contains errors, script will be disabled or something, it's really annoying.
I tried hosting dedicated and stuff, I did the tutorial I right clicked the download button and I saved it into my documents sfd scripts folder, but i renamed it to wizards...
Last post
Maybe the one you have is old one, which is bugged as of Latest SFD updates.
Here Download Link for wizards script
I just fixed some bugs in this script.
Tell me if any more bugs found while using.
*Script by #Octothorp Team*
(I just edited it)
Also you should check other posts for updated...
- 1 Replies
- 169 Views
-
Last post by SAURABH
Wed Dec 27, 2017 7:01 am
-
-
Handle NPC names through script
Replies: 2
by
JakSparro98 » Mon Nov 27, 2017 10:47 pm
First post
I would suggest a couple of quite obvious addition (that maybe are already planned but since the last small update didn't covered that lacks I will post it anyway) regarding the handling of the NPC's names through code:
An overload of the existent Game.CreatePlayer with the possibility to specify...
Last post
The thread wasn't supposed to mortify you, I just wanted to know the purposes of things I really can not understand the uses.
Take this thread just as a reminder, even because you cannot think of everything, it's completely legitimate, my only worry was that my behavior could make me look like a...
- 2 Replies
- 149 Views
-
Last post by JakSparro98
Tue Nov 28, 2017 12:25 am
-
-
SetAmbientSound input?
Replies: 1
by
android7 » Sat Nov 25, 2017 11:41 am
First post
What do I put in.SetAmbientSound()?
Im just trying to spawn sound area, but I don't know what can put in.
public void OnStartup()
{
IObjectSoundArea noise = (IObjectSoundArea)Game.CreateObject( SoundArea );
noise.SetAmbientSound( ?? );
}
Last post
Ambient sound ID is the same as the filename without extension found in the Data\Sounds\Ambient\ folder. Adding this to the ScriptAPI documentation next update to clarify.
- 1 Replies
- 124 Views
-
Last post by Gurt
Sat Nov 25, 2017 2:16 pm
-
-
Modifier Triggers to Script
Replies: 3
by
Heroes084 » Thu Nov 09, 2017 3:40 pm
First post
I need a help on making a player get some modifiers when activating something, like the player does more melee damage when pressing a button, so... if someone could help me on this, Thx :D
Last post
With this the player that activates the button, or passes through the trigger will inherit the modifiers.
Keep in mind that if you use multiple modifiers on the same player, the previous modifiers are not cleared if in the new triggered modifier there isn't a default flag (-2 instead of -1), so if...
- 3 Replies
- 283 Views
-
Last post by JakSparro98
Sat Nov 11, 2017 10:20 pm
-
-
Survival mode and Scripts
Replies: 1
by
_Batman_Shadow_ » Mon Nov 06, 2017 2:57 am
First post
Why do scripts not work on the new zombie map?Is there a way to enable them?I was tryna use the gore script and it didnt work.Already tried editing it in the map editor with the header,still wouldnt work
Last post
Batman sigh...
What on earth made you willing to use gore on zombie mode? I bet you're not having any supercomputers with you. This script is meant for max 8 players. It already lags on most players.
Also I think that scripts are disabled for three reasons:
1. They would ruin the maps, because...
- 1 Replies
- 215 Views
-
Last post by Motto73
Mon Nov 06, 2017 8:55 am
-
-
Script Requesting
Replies: 9
by
CrazyDuck » Thu Oct 12, 2017 4:07 pm
First post
I don't know how to write scripts at all , So I hope to have a player that good at scripting can help me write a small script
If someone could help me , i will be able to finish my map . thank you guys!
The Scripts i need will resurrect the player on the body 5 seconds after he dead, and remove...
Last post
Clear, here's the script, I hope it's what you're asking:
const int RespawnSeconds = 5;
static List DPlayersList = new List ();
Events.PlayerDeathCallback m_playerDeathEvent = null;
Events.UpdateCallback m_updateEvent = null;
class DeadPlayer {
IProfile P_profile;
public IUser P_user;
public...
- 9 Replies
- 617 Views
-
Last post by JakSparro98
Mon Oct 30, 2017 6:02 pm
-
-
Can I Get A Flying Script?
Replies: 2
by
_Batman_Shadow_ » Fri Jul 14, 2017 5:50 am
First post
I Cant Find a good flying script for anything!!! Please help me!
Last post
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 );...
- 2 Replies
- 353 Views
-
Last post by Heroes084
Tue Oct 24, 2017 3:17 am
-
-
CPU AI (land before hardcoded AI)
Replies: 8
by
Danger Ross » Mon Jan 09, 2017 6:20 am
First post
Who has created the best AI for the CPU we have today?
Has anyone made anything notable, such as a bot that can navigate a map to find a player? I'm thinking this could be done through super inefficient collision checks in an area around the bot so that it can see where it should jump or how it...
Last post
Hah good to see that you're open minded. Sorry for that
- 8 Replies
- 1011 Views
-
Last post by ShayVo_
Mon Oct 23, 2017 10:00 pm
-
-
Invisibility script request.
Replies: 5
by
_Batman_Shadow_ » Fri Sep 22, 2017 5:14 am
First post
Hey, guys, I was requesting a script where as long as you are walking, your name id is hidden and/or you are hidden too.This is because I wanna do hide and seek servers; hide and seek maps. Thx
Shinobi---Out*Smoke appears*
Last post
I have done some example of special hide&seek map , but i still can't fix some difficult parts...
- 5 Replies
- 401 Views
-
Last post by Shock
Sat Sep 23, 2017 5:07 am
-
-
Game. Commands
Replies: 4
by
_Batman_Shadow_ » Wed Sep 13, 2017 4:01 am
First post
Can someone pls list all the Game. Commands such as Game.RunCommand or such.
Sound Fx would be nice too
thx
Last post
See
- 4 Replies
- 464 Views
-
Last post by Gurt
Sat Sep 16, 2017 8:56 am
-
-
List of effect names?
Replies: 4
by
android7 » Sun Sep 10, 2017 6:53 pm
First post
Is there any list of effect names, the Game.PlayEffect ones?
I tried using F11 to track effects, but that only tells me about ones failed to execute, or don't exist.
Last post
Since they are strings, quotation marks are a must.
- 4 Replies
- 287 Views
-
Last post by JakSparro98
Mon Sep 11, 2017 2:12 am
-
-
I just posted an online copy of the Superfighters Deluxe API.
Replies: 3
by
Juansero29 » Wed Mar 29, 2017 6:02 pm
First post
Access it here.
I just made a copy on a private repository on github, I thought it could be useful for us coders to have an online version. You can add it to your bookmarks and have it right away. I will be constantly updating it with the newest API Documentation live at the moment on the last...
Last post
I haven't accessed the fourms in a long time, but HOLY that website is amazing!
Remember me? You finally did something with that website!
- 3 Replies
- 602 Views
-
Last post by Ariq Haqq
Wed Sep 06, 2017 7:29 am
-
-
delete corpses & gibs after few seconds
Replies: 10
by
The_JOKER » Thu Aug 17, 2017 11:26 am
First post
since corpses and gibs are making the map buggy,
is it able to delete after few seconds with script?
Last post
If you want to only clear gibs you need to copy the script code I posted previously.
I split the script in two threads because I was no idea how Joker wanted the script to work, the complete script was supposed to respawn two teams, and is this:
const int RespawnSeconds = 15;
const int...
- 10 Replies
- 623 Views
-
Last post by JakSparro98
Fri Sep 01, 2017 12:27 am
-
-
Disable Friendly Fire
Replies: 1
by
The_JOKER » Fri Aug 18, 2017 2:39 am
First post
On D-Day map, they keep shooting teammates, lots of players dying by same team.
I'm not sure if it is possible with scripts, but It would be great if it is possible
Last post
Since bullet handling isn't available on the current SFD version we cannot know who fired that bullet and so preventing friendly fire.
Another way could be my AI project, it uses raycast for avoiding to shoot enemy behind a wall and might recognize an ally in his trajectory and so stop shooting,...
- 1 Replies
- 245 Views
-
Last post by JakSparro98
Fri Aug 18, 2017 1:31 pm
-
-
New "Thread"
Replies: 10
by
kirill240 » Tue Jun 27, 2017 10:45 pm
First post
Hey guys.
Very long time I wrote DM. When the player died, I created a timer, so he was resurrected after a certain period of time. It's pretty convenient.
1) And now I have a question, how do I better organize several threads, through timers or use the Thread class?
2) There is one more problem...
Last post
Like in Unity 3d the APIs are not thread-safe, but this doesn't mean you cannot perform actions that doesn't require object references, you can even process a whole path for an entity requiring pathfinding in a separate thread, but all the information needed have to be passed at the moment the...
- 10 Replies
- 816 Views
-
Last post by JakSparro98
Thu Aug 17, 2017 1:41 pm
-
-
What is the difference between "ID" and "Id"
Replies: 4
by
jamisco » Sat Jun 24, 2017 5:07 am
First post
There are methods that allow you to get single or multiple objects by their ID
IObject Gunner_ID = Game.GetSingleObjectByCustomID( The_Gunner );
//or
IObject Gunner_ID = Game.GetSingleObjectByCustomId( The_Gunner );
IObject Gunner_ID = Game.GetObjectsByCustomID( The_Gunner );
//or
IObject...
Last post
I'm glad this two-month old thread helped you with your issue.
Solved, locked.
- 4 Replies
- 487 Views
-
Last post by KliPeH
Wed Aug 16, 2017 9:59 pm
-
-
Jittery Movement using SetLinearVelocity
Replies: 4
by
ClockworkDice » Mon Jul 24, 2017 1:11 am
First post
Hi, so I've spent a while creating a hoverboard script today, and it works fine in the map editor. The problem is that when I host an actual game, even if I'm the only person in the server, the movement of the hoverboards is super jittery. I can only expect this effect to become worse if other...
Last post
Yea, having the same problem with many scripts with calling some method very much on shprt time. OnUpdate things update faster in the map editor, even if there's as many frames when hosting.
- 4 Replies
- 392 Views
-
Last post by Motto73
Wed Aug 16, 2017 12:59 pm
-
-
need a script to respawn
Replies: 4
by
The_JOKER » Mon Aug 14, 2017 8:52 am
First post
I need a script to respawn in 15 second.
* I Only need script that respawn! don't give me death counter or any other gamemodes!*
I'm trying to make objective map that end a game with script. so its not death match.
and I need to move respawn point later so make it able to spawn on player spawn...
Last post
Looks like working great! Thank you for the help!
- 4 Replies
- 434 Views
-
Last post by The_JOKER
Wed Aug 16, 2017 2:35 am
-
-
Wizards Mod
Replies: 3
by
emporerpineapple » Sat Jun 03, 2017 4:45 am
First post
I tried to used the wizards mod only for it to tell me there was an error and the script was going to be disabled. I was wondering if anyone could help me? Is there an updated version or did i do something wrong?
Last post
Here you go.
Moved thread to the Script API section.
- 3 Replies
- 536 Views
-
Last post by KliPeH
Thu Aug 10, 2017 8:55 pm
-
-
A way to skip parameters in method
Replies: 4
by
jamisco » Tue Jul 18, 2017 10:55 pm
First post
take the method .. Player.AddCommand(new PlayerCommand(CommandType, TargetbjectID, delayTime))
say i want to input just commandtype and the delay time, how would i skip the TargetObjectID?
Last post
The PlayerCommand has several constructor overloads. Use the most appropriate one. Sending in the wrong parameters won't do anything if it can't be applicable.
/*
// Example use:
IPlayer player = Game.CreatePlayer(Vector2.Zero);
player.AddCommand(new...
- 4 Replies
- 509 Views
-
Last post by Gurt
Thu Aug 03, 2017 4:10 pm
Who is online
Users browsing this forum: No registered users and 1 guest
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