| Blockland Forums > Modification Help |
| command swtich |
| (1/5) > >> |
| Cubelands:
I want write this script. Admin orbs allowed swtich other the particles. and I did test it, nothing work. :C In server.cs --- Code: --- function serverCmdbubble(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/bubble.cs"); } function serverCmdchunk(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/chunk.cs"); } function serverCmdcloud(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/cloud.cs"); } function serverCmddot(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/dot.cs"); } function serverCmdheart(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/heart.cs"); } function serverCmdnut(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/nut.cs"); } function serverCmdring(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/ring.cs"); } function serverCmdstar1(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/star.cs"); } function serverCmdthinring(%client) { Particle.setBitmap("Add-ons/Client_InterAdminOrbs/thinring.cs"); } --- End code --- If I want swtich use admin orb bubble, I have type in the chat box and say /bubble or /nut something like that. I forget add it something? |
| Port:
Firstly, have you created an object named Particle? Secondly, I doubt there is a function named setBitmap on particle datablocks. Thirdly, you cannot use .cs scripts as particle bitmaps. Fourthly, you are not transmitting the changes to clients. Fifthly, you are mentioning the "admin orb bubble". The datablock of the admin orb bubble is not named Particle. |
| Cubelands:
--- Quote from: Port on April 09, 2012, 07:06:16 AM ---Have you created an object named Particle? Secondly, I doubt there is a function named setBitmap on particle datablocks. Thirdly, you cannot use .cs scripts as particle bitmaps. Fourthly, you are not transmitting the changes to clients. Fifthly, you are mentioning the "admin orb bubble". The datablock of the admin orb bubble is not named Particle. --- End quote --- I should rename it, like client_bubble.cs etc ? I did wrote 8 of cs inside of each particles, correct? |
| Wordy:
Why is their a %client arguement? It looks like it isn't needed. |
| Cubelands:
--- Quote from: Wordy on April 09, 2012, 07:48:35 AM ---Why is their a %client arguement? It looks like it isn't needed. --- End quote --- How I am going write command swtich script? please tell me what I do? If you want test my mod. I can link here. If you want to. |
| Navigation |
| Message Index |
| Next page |