Re: How to use pick up items in your title packs
Posted: 29 Aug 2013, 14:29
Have you got items in your Items/SMCommon/Pickups folder ?
You have to code what they have to doCrAzYdriv3r 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
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);
}
Code: Select all
SetPlayerWeapon(CSmPlayer Player, EWeapon DefaultWeapon, Boolean AutoSwitchWeapon)
Are you can give meshes(.FBX)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.
So, if all the infos in this thread are out of date, where can we find up to date informations on pick up items ??WARNING: The ManiaScript item API changed drastically. The following code doesn't work anymore with the current version of the game.
Hello !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 :
So, if all the infos in this thread are out of date, where can we find up to date informations on pick up items ??WARNING: The ManiaScript item API changed drastically. The following code doesn't work anymore with the current version of the game.
A simple tuto on how to load and use the laser pick up item, would be awesome
thx in advance
AhZ