Page 17 of 17

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

Posted: 29 Aug 2013, 14:29
by spaii
Have you got items in your Items/SMCommon/Pickups folder ?

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

Posted: 29 Aug 2013, 14:33
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);		
	}

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

Posted: 29 Aug 2013, 14:40
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:

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

Posted: 29 Aug 2013, 14:43
by spaii
You're welcome! ;)

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

Posted: 29 Aug 2013, 15:08
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? :?

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

Posted: 29 Aug 2013, 16:53
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

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

Posted: 02 Sep 2013, 12:51
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) :) ?

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

Posted: 05 Jun 2015, 14:24
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

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

Posted: 05 Jun 2015, 15:08
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:

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

Posted: 05 Jun 2015, 15:17
by ahz
thx Darkminus,

i'm gonna have a look at it ;)

cheers