Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Emitters, once again. (https://forums.graalonline.com/forums/showthread.php?t=68046)

ForgottenLegacy 08-12-2006 04:07 AM

Emitters, once again.
 
I understand emitters. I understand the 'TShowImg', 'TEmitter', and 'TEmitterParticle' objects. I completely understand the addLocalModifier() function.

But, I do not understand addGlobalModifier, addEmitModifier, and addMod. I just don't see the difference between addGlobalModifier and addLocalModifier, I don't know much about addEmitModifier, and I don't know what addMod is for.

I know the modifiers return objects after working... can someone explain to me these objects? Such as, their GraalScript Object ID (TEmitterParticle, TGraalVar, for example), and uses in modifying them.

Thanks! I'm going to add this to my docu on emitters when I learn them, and I'll re-release the docu.

Angel_Light 08-12-2006 07:09 AM

I think global effects all emitter (even the ones outside) maybe? admod is just modifing a emitter to do two things

PHP Code:

with (emitter.addlocalmodifier("range"112"spin""add", -20, -30)) {
  
addmod("zangle""add"0.10.5);




All times are GMT +2. The time now is 11:20 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.