Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   PE on Terrain (https://forums.graalonline.com/forums/showthread.php?t=67842)

Angel_Light 08-03-2006 06:42 AM

PE on Terrain
 
How do I get so when any particle is on the terrain it shows a ani

heres what I have right now

if (emitter.particle.z == "0") {
showani(this.particle.x,this.particle.y,"sh_raindr op",NULL);
}

I've tried many other things but nothing works :/

contiga 08-03-2006 06:59 PM

Thats something I need also, when my rain dropped down I need to see a splash, so maybe some modifier for images could help?

ForgottenLegacy 08-05-2006 12:50 AM

PHP Code:

addLocalModifier("once"rangeendrangeend"image""replace", <imagename>, <imagename>); 

This post may get deleted but that's my shot in the dark. That _might_ work, but then again, if the GS2 parser evaluates the last two params as numbers, then there's no way to do it with modifiers.

Isn't there some way to access each individual emitted particle?

Twusk 08-05-2006 04:30 AM

Perhaps this information posted by Stefan might be helpful:

- emitter.dropemitter, emitter.dropwateremitter - those work exactly like the emitter itself (e.g. you can edit emitter.dropemitter.particle) and are used for emitting particles once a particle drops on the ground (rain drops) or the lifetime is over (for fireworks) - once a particle is dropping the emitter is calling dropemitter.emitat() to produce the drops; if there is a dropwateremitter and the particle was dropping on water then it is using the dropwateremitter for the drop effect

Source: http://forums.graalonline.com/forums...ad.php?t=62877


All times are GMT +2. The time now is 05:56 AM.

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