Jump to content
Sign in to follow this  
SmithZ

Mapping scripts

Recommended Posts

Hello there, it's me, i've opened this thread cuz i need help for script my map, i really dont know how to put the music, palms, water or whatever else needed to script a map, so i might be grateful if someome helps me

Share this post


Link to post
Share on other sites

Create a file named music.lua or anything you want but take care to use .lua as extension, then put this inside:

setRadioChannel(0)
song = playSound("HEREPUTYOURFILENAME.mp3", true)

bindKey("m", "down",
function ()
        setSoundPaused(song, not isSoundPaused(song))
end)

Save it and go in meta.xml

For lua files use:

<script src="nameofthefile.lua" type="client" />

While for other files:

<file src="nameofthefile.extension" />

 

Palms scripthttps://mega.nz/#!hw4njaxT!SWhGPy8FGDvIpryKEwlwx8sRsnhb68KYUeBuPvXJjR4

Download this, place all the files of this in your directory and do the meta.xml step once again, include everything in the archive

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...