TITLE PACK, MAP EDITOR

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
benj9029
Posts: 39
Joined: 17 Jul 2018, 10:31

TITLE PACK, MAP EDITOR

Post by benj9029 »

Hey guys, I recently created a title pack called low gravity. The titlepack contain TM2 stadium map with a game script that includes a low gravity. This also applied to the local play section. The problem is that I want to make a low gravity map editor. On TM2 stadium maker, there is a script option on the map editor, the problem here is that, after trying dew things, impossible to get a low gravity in the editor, does anyone have an idea on how to realize this. Here is the script, used in solo:

#Extends "Modes/TrackMania/CampaignSolo.Script.txt"
#Setting S_Gravity 0.5
***Yield***
***
foreach (Player in Players) Player.GravityCoef = S_Gravity;
***


Thx, MosKi.
Discord: MosKi#4531
benj9029
Posts: 39
Joined: 17 Jul 2018, 10:31

Re: TITLE PACK, MAP EDITOR

Post by benj9029 »

Or, I was thinking, if anyone knows what script call the race script, which I would change but I don't really understand
Discord: MosKi#4531
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: TITLE PACK, MAP EDITOR

Post by Eole »

Hi,

In the map editor, the map type script is responsible of that. You'll have to create a new map type with the gravity modification inside. You can take a look at the original script here.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest