| Blockland Forums > Suggestions & Requests |
| Request: Particles Spawn |
| << < (2/4) > >> |
| Scriode:
I found this hidden somewhere. Doesn't have all the stuff required to work I don't think (I didn't look), but it has the model and the sound. Here you go |
| Furling²:
--- Quote from: Scriode on October 23, 2013, 12:34:29 AM ---I found this hidden somewhere. Doesn't have all the stuff required to work I don't think (I didn't look), but it has the model and the sound. Here you go --- End quote --- How it does work? |
| Pecon:
--- Quote from: Furling² on October 23, 2013, 01:12:39 AM ---How it does work? --- End quote --- It doesn't. It's just the raw effect and the bare minimum stuff for it to work. It just needs a package to put it on players when they spawn. |
| MARBLE MAN:
datablock StaticShapeData(Tezuni_SpawnEffect) { category = "Effects"; shapeFile = "./fx01.dts"; }; function Tezuni_SpawnEffect::onAdd(%data, %obj) { %obj.playThread(0, "castAnim"); %obj.schedule(5000, "delete"); } package spawnomg { function Armor::onAdd(%this,%obj) //could just change spawn explosion but w/e { Parent::onAdd(%this,%obj); if(%obj.getType() & $TypeMasks::PlayerObjectType && isObject(%obj.client)) %obj.spawnThingy(); } }; activatepackage(spawnomg); function Player::spawnThingy(%obj) { if(!isObject(%obj.spawnThingy)) { %obj.spawnThingy=new StaticShape() { datablock=Tezuni_SpawnEffect; position = %obj.getPosition(); }; } } too tired to test, someone do w/e with it thank god it has rotation animations note: change this to be better kthx |
| Furling²:
I will test it later. EDIT: I just did tested this script coming up errors. --- Code: ---Loading Add-On: Script_SpawnThingy (CRC:1795642312) Add-Ons/Script_SpawnThingy/server.cs Line: 32 - Syntax error. >>> Some error context, with ## on sides of error halt: Parent::onAdd(%this,%obj); if(%obj.getType() & $TypeMasks::PlayerObjectType && isObject(%obj.client)) %obj.spawnThingy(); } }; activatepackage(spawnomg); function Player::spawnThingy(%obj) { if(!isObject(%obj.spawnThingy) {## ## %obj.spawnThingy=new StaticShape() { datablock=Tezuni_SpawnEffect; position = %obj.getPosition(); }; } } >>> Error report complete. ADD-ON "Script_SpawnThingy" CONTAINS SYNTAX ERRORS --- End code --- What about event? I can make more the particles for this. |
| Navigation |
| Message Index |
| Next page |
| Previous page |