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.

Need Help Moving Cars with Script

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
MrWheatley
Fighter
Fighter
Posts: 11
Joined: Wed Jun 06, 2018 7:36 am

Need Help Moving Cars with Script

Post by MrWheatley » Sun Jun 17, 2018 1:40 am

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 because I get an No route found for "GET /posting.php" (from "https://www.mythologicinteractiveforums ... =post&f=15") error)
0 x

User avatar
Shock
Superfighter
Superfighter
Posts: 143
Joined: Sun Mar 20, 2016 7:17 am
Title: Metallioneer
SFD Account: Shock
SFD Alias: (#MH):Shock
Started SFD: Pre-Alpha 1.2.0.
Location: Metalion
Gender:
Age: 19
Contact:

Post by Shock » Sun Jun 17, 2018 9:33 am

You have to look at this map , no need any scripts , only turrets : link
If you don't understand - just pm me

there's also a map about movement of the cars by sensors. For 4 players : link
0 x
-Minigamer
Pewds : skrattar du förlorar du!

Don't click!

MrWheatley
Fighter
Fighter
Posts: 11
Joined: Wed Jun 06, 2018 7:36 am

Post by MrWheatley » Sun Jun 17, 2018 6:13 pm

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.
0 x

User avatar
The_JOKER
Fighter
Fighter
Posts: 38
Joined: Mon Jul 18, 2016 2:35 am
Title: I'm Korean JOKER :)
SFD Account: JOKER_Korea
SFD Alias: JOKER
Started SFD: April 2016
Location: South Korea
Gender:
Age: 17
Contact:

Post by The_JOKER » Mon Jul 02, 2018 1:42 am

can you upload some screenshot of the map so people can understand better?
0 x

MrWheatley
Fighter
Fighter
Posts: 11
Joined: Wed Jun 06, 2018 7:36 am

Post by MrWheatley » Mon Jul 02, 2018 8:35 pm

0 x

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 329
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 19

Post by JakSparro98 » Tue Jul 03, 2018 7:35 pm

Sorry for the time you waited but I'm very very busy these times, I was having a look to your problem last week but I had no time to share the solution.

In this map example you can find my script modification to work with undefined numbers of moving objects, just make sure to rename the script trigger to "Toggle." then add a custom ID you like after the dot and assign that same id to the Elevator attachment joint you want to move.
1 x

MrWheatley
Fighter
Fighter
Posts: 11
Joined: Wed Jun 06, 2018 7:36 am

Post by MrWheatley » Wed Jul 04, 2018 3:34 am

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.
0 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest