![]() |
Emitter not working
PHP Code:
|
This is just a guess but I think the Particle Emitter is supposed to be used with image indexes that are clientside-only, meaning the image index needs to be 200 or greater.
|
Quote:
so it would be: PHP Code:
|
Or 200. I actually prefer to start at 200 ;P
|
I would say that zoom, stretchx and stretchy should be greater than zero otherwise you will not see anything (try with 1...)
Also the emission offset (20 tiles) is a little bit high, try {0,0,0} first |
Okay thanks :)
BTW It wasn't that it needed to be img number 200 or higher... Edit: LOL I don't like this emitter system :[ PHP Code:
NPC Code:GraalScript: Function addLocalModifier not found at line 31 in script of Switch/Test Suggestions?? |
Try with (this.emitter), there might be some global "emitter" variable
|
No that didn't work :[
Quote:
Ok, even wierder... PHP Code:
NPC Code:GraalScript: Function emitter.addLocalModifier not found at line 31 in script of Switch/Test |
Yes try what I said
|
Quote:
It's working for my friend's though use "with(emitter)" and jsut writing it all out like my last post. |
don't put
PHP Code:
PHP Code:
|
Nope :[
|
Quote:
PHP Code:
PHP Code:
|
Nope.
It keeps saying the same thing in RC GraalScript: function emitter.addLocalModifier not found at line ___ of switch-test of script Switch/Test |
duh because you have addLocalModifier don't use the capital L use the little l
PHP Code:
|
I had it correct then it wouldn't work as class so I copied and pasted into the actual Weapon and it returned:
GraalScript: Function emitter.addlocalModifier not found at line 31 in script of Switch/Test GraalScript: Function emitter.addlocalModifier not found at line 32 in script of Switch/Test |
Dude, static variables are not case-sensitive, only dynamic variables are.
And I think you might have a global emitter variable like you said. Do echo(emitter.objecttype()) and see what it says? I believe it would be TParticleEmitter if its the correct object. |
No it's "TGraalVar"
|
Quote:
|
Then what am I supposed to use? It says to use emitter. commands in TGC's guide...
|
Try this.emitter inside the with part.
|
That still didnt work..
|
this.emitter.addlocalmodifier() does not work?
lol, I have no idea then. |
Earlier today Skyld said he doesn't know much about particles, an Stefans stuff worked but then it got screwy so I cahnged and then it came up with the errors, so I think I need Stefan to actually look at this on RC.
Go on Graal Legacy and look at "Switch/Test" @ Stefan Or someone can look at it and toy around with it on their server. PHP Code:
|
please I really need to know why it wont work :frown:
|
I'm very proficient with particles but I'll probably need to look at it personally. Send me a message in one of my contacts.
|
Ok fixed the problems:
- there were a few spaces behind //#CLIENTSIDE so it compiled it as serverside script - on gmap something like player.x + random(-30,30) works better because random(0,60) is just upper left corner of the gmap - also added emitter.cliptoscreen = true to have the particles on the screen even when emitted or moving outside and changed attachposition to false |
I could have fixed it :frown:
|
Never knew the spaces could make a difference:oo:
|
Yeah @ Iverness :o
|
Ugh, so many people leave out the N when they spell my name :whatever:
|
Iverness sounds better. Inverness is too original for my mental capacity :o
I'll try to remember ;) |
Quote:
|
Quote:
|
Quote:
Completely disregarding the fact that Macbeth, in the famous Shakespeare play of the same name, resided in a castle in Inverness. Completely disregarding: http://en.wikipedia.org/wiki/Inverne...ambiguation%29 |
Quote:
It's easier for me to pronounce :frown: |
Quote:
It's In-ver-ness not Aye-n-ver-ness |
| All times are GMT +2. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.