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.

Search found 13 matches

by MrWheatley
Tue Sep 04, 2018 9:20 pm
Forum: Answered ScriptAPI Topics
Topic: Let's work together!
Replies: 5
Views: 3445

Re: Let's work together!

What kind of AI are you currenlty using @Aukaiakoi? A script made or the predefined AI from the editor? Should I modify an already existent script for the bots or create a new from scratch? I'm pretty sure that this is his map: http://sfdmaps.at.ua/load/maps/adventure/plant_toxic_infected/5-1-0-961...
by MrWheatley
Thu Jul 26, 2018 2:43 am
Forum: Answered ScriptAPI Topics
Topic: Is There a FlagpoleUSThrown?
Replies: 1
Views: 1665

Is There a FlagpoleUSThrown?

Is there something like flagpoleusthrown? Or is there someway to make items of collision when used like this:

Code: Select all

Game.CreateObject("FLAGPOLEUSTHROWN", ply.GetWorldPosition() + new Vector2(ply.FacingDirection*10, 10), 0f, new Vector2(ply.FacingDirection*50, 5), 0f);
by MrWheatley
Thu Jul 12, 2018 1:12 am
Forum: Answered ScriptAPI Topics
Topic: FacingDirection Not Working in This Script
Replies: 1
Views: 1910

FacingDirection Not Working in This Script

I was messing around with Motto73's Fake Death script to spawn objects instead of a body and it worked, but I want the object to have the same momentum as the player. It only worked in one direction though. public void OnStartup () { Events.UpdateCallback.Start (OnUpdate); foreach (IPlayer p in Game...
by MrWheatley
Wed Jul 04, 2018 8:44 pm
Forum: Answered ScriptAPI Topics
Topic: How to Apply Clothes in This Script
Replies: 5
Views: 3686

Re: How to Apply Clothes in This Script

Nvm, I figured it out. But what I can't figure out is how to change the skin color. The Skin attribute in the IProfile class can change the skin color, you need to copy the current player profile, change the copy and then re-assing the latter to the player with SetProfile. You will only get the ski...
by MrWheatley
Wed Jul 04, 2018 3:34 am
Forum: Answered ScriptAPI Topics
Topic: Need Help Moving Cars with Script
Replies: 6
Views: 3952

Re: Need Help Moving Cars with Script

Thank you so much, but while I was adding your script to my map, I realized that the elevator attachment joint wasn't attached to the other car and that's why it wasn't working...
But you're method is way better and sorry to waste your time.
by MrWheatley
Sat Jun 30, 2018 6:59 pm
Forum: Answered ScriptAPI Topics
Topic: How to Apply Clothes in This Script
Replies: 5
Views: 3686

Re: How to Apply Clothes in This Script

Nvm, I figured it out. But what I can't figure out is how to change the skin color.
by MrWheatley
Tue Jun 26, 2018 8:05 pm
Forum: Answered ScriptAPI Topics
Topic: How to Apply Clothes in This Script
Replies: 5
Views: 3686

How to Apply Clothes in This Script

So I modded this class script to work because it was made before the GetBorderArea change and was wondering how would I apply a custom profile to each class. I already wrote all the clothing items. Also, is it possible to change a player's name temporarily in game to something like, "Red Spy" when t...
by MrWheatley
Wed Jun 20, 2018 3:20 am
Forum: Answered ScriptAPI Topics
Topic: Need Help With Scripting
Replies: 5
Views: 3599

Re: Need Help With Scripting

JakSparro98 wrote:
Tue Jun 19, 2018 7:37 pm
MrWheatley wrote:
Mon Jun 11, 2018 9:54 pm
Yeah, it'll be kinda like this; http://sfdmaps.at.ua/load/scripts/compl ... 10-1-0-119
Will this feature be used by multitple players? after that information I can start write the script.
Yeah, just two though.
by MrWheatley
Sun Jun 17, 2018 6:13 pm
Forum: Answered ScriptAPI Topics
Topic: Need Help Moving Cars with Script
Replies: 6
Views: 3952

Re: Need Help Moving Cars with Script

Thank you for replying but that's not what I need, I need to be able to make the object car01a to move, the same way the train in TrainYard does.
by MrWheatley
Sun Jun 17, 2018 1:40 am
Forum: Answered ScriptAPI Topics
Topic: Need Help Moving Cars with Script
Replies: 6
Views: 3952

Need Help Moving Cars with Script

I need to make two cars a the map move with a button for each and I can only get one of the cars to move. It's using a modified version of the train on TrainYard. https://pastebin.com/8shnCze1 I tried adding a 1 to everything in the other car but it still doesn't work. (Again, I have to use pastebin...
by MrWheatley
Mon Jun 11, 2018 9:54 pm
Forum: Answered ScriptAPI Topics
Topic: Need Help With Scripting
Replies: 5
Views: 3599

Re: Need Help With Scripting

How would you make a list of tiles that can be separated with slots 1-4 and cycled through using walk + block + facing direction, and can be called on using my script? https://pastebin.com/jV4p7bV9 I tried to make a script to spawn to spawn every thing in the game, but got stuck here, I just need w...
by MrWheatley
Sun Jun 10, 2018 10:27 pm
Forum: Answered ScriptAPI Topics
Topic: Need Help With Scripting
Replies: 5
Views: 3599

Need Help With Scripting

How would you make a list of tiles that can be separated with slots 1-4 and cycled through using walk + block + facing direction, and can be called on using my script? https://pastebin.com/jV4p7bV9 I tried to make a script to spawn to spawn every thing in the game, but got stuck here, I just need wh...