How to use pick up items in your title packs

Discuss everything related to custom data creation.

Moderator: NADEO

User avatar
spaii
Posts: 1100
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: How to use pick up items in your title packs

Post by spaii »

Have you got items in your Items/SMCommon/Pickups folder ?
User avatar
spaii
Posts: 1100
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: How to use pick up items in your title packs

Post by spaii »

CrAzYdriv3r wrote:EDIT: Nope, I managed to get it to work but I have another problem.....
The pickup items are shown but when I pick them up they don't give anything
You have to code what they have to do ;)

Look at your mode script here :

Code: Select all

if (Event.Type == CSmModeEvent::EType::OnPlayerTouchesObject)
	{
		// When player touche object : put your actions here
		
		// destroy object touched, but you can let object on map if you want
		ObjectDestroy(Event.Object);		
	}
User avatar
Mandark
Posts: 1297
Joined: 15 Jul 2010, 17:58
Location: Romania

Re: How to use pick up items in your title packs

Post by Mandark »

Honestly I have no idea how to do this :oops:
But I really appreciate that you helped me with the items to show in the gamemode :thx:
Specs
Motherboard: Asus ROG Maximus VII Formula
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
GPU: Nvidia GeForce GTX 980 Ti
RAM: 16GB
Operating System: Windows 10 Pro
User avatar
spaii
Posts: 1100
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: How to use pick up items in your title packs

Post by spaii »

You're welcome! ;)
User avatar
Mandark
Posts: 1297
Joined: 15 Jul 2010, 17:58
Location: Romania

Re: How to use pick up items in your title packs

Post by Mandark »

So now, how do I exactly make it in such way that for example, when you pick up the laser, it gives you laser and so on? :?
Specs
Motherboard: Asus ROG Maximus VII Formula
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
GPU: Nvidia GeForce GTX 980 Ti
RAM: 16GB
Operating System: Windows 10 Pro
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: How to use pick up items in your title packs

Post by Eole »

You can take a look on the SwitchWeapon() and PickUpObject() functions in the combo mode. By combining a bit of code from the two functions you should be able to do what you want.

Use this function to set the weapon of a player:

Code: Select all

SetPlayerWeapon(CSmPlayer Player, EWeapon DefaultWeapon, Boolean AutoSwitchWeapon)
http://tmrankings.com/maniascript/html/ ... 128de68779
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
alividerci
Posts: 561
Joined: 11 Feb 2012, 07:03

Re: How to use pick up items in your title packs

Post by alividerci »

Eole wrote:For those who want to try pickup items (as seen in new Combo mode),
you can download http://files.maniaplanet.com/tools/Samp ... pItems.zip.
Are you can give meshes(.FBX) :) ?
User avatar
ahz
Posts: 13
Joined: 27 Jul 2013, 18:59

Re: How to use pick up items in your title packs

Post by ahz »

Hi all,

sorry to digg up this old thread, but it seem to be the only
one related to item pick up in SM.

Eole's original threads says this :
WARNING: The ManiaScript item API changed drastically. The following code doesn't work anymore with the current version of the game.
So, if all the infos in this thread are out of date, where can we find up to date informations on pick up items ??
A simple tuto on how to load and use the laser pick up item, would be awesome ;)

thx in advance

AhZ
Last edited by ahz on 05 Jun 2015, 15:22, edited 1 time in total.
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: How to use pick up items in your title packs

Post by Darkminus »

ahz wrote:Hi all,

sorry to digg up this old thread, but it seems to be the only
one related to item pick up in SM.

Eole's original threads says this :
WARNING: The ManiaScript item API changed drastically. The following code doesn't work anymore with the current version of the game.
So, if all the infos in this thread are out of date, where can we find up to date informations on pick up items ??
A simple tuto on how to load and use the laser pick up item, would be awesome ;)

thx in advance

AhZ
Hello !

This link should help you :

http://doc.maniaplanet.com/creation/man ... -an-object

Have fun ! :yes:
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
ahz
Posts: 13
Joined: 27 Jul 2013, 18:59

Re: How to use pick up items in your title packs

Post by ahz »

thx Darkminus,

i'm gonna have a look at it ;)

cheers
Post Reply

Return to “Title Pack & Custom Data Creation”

Who is online

Users browsing this forum: No registered users and 2 guests