spider661
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 25 Dec 2002 |
Posted: Wednesday, 04 November 2009 04:37AM |
anyone know y this code is not working..
im trying to make a new placable then put a vfx on it so they can see its selected by the scripts its making the sounds for the effect but not showing the effect i have tryed delaying it and everything else i could think of i even had debug code it getting the tag of the placable to make sure it could find it.
here is the code
|
|
Axe Murderer
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 16 Jun 2003 From: California U S A Red, White, & Bluuu |
Posted: Wednesday, 04 November 2009 06:06AM |
|
Try using ApplyEffectAtLocation instead. Some of them don't work on placeables. |
|
kalbaern
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 25 Apr 2006 |
Posted: Wednesday, 04 November 2009 06:14AM |
|
The issue seems to stem from "where" on the placeable the effect is fired from. Often if you can hear the effect,but not see it ... it's because the effect is at or below ground level on that particular placeable. I usually just apply the effect to an invisible object along with a static placeable and raise it between .25 and .75 on the X-axis if the placeable doesn't seem to like the effect. I've also encountered the same issue and use this fix when a placeable needs to cast a spell with a line of sight requirement. |
|
spider661
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 25 Dec 2002 |
Posted: Wednesday, 04 November 2009 06:45AM |
ok it does work when applying it to the location.. but i need to move the object and so i destroy it and put it in its new location. can i move the effect with it?
1 spawn placable 2 create effect at location under placable 3 delete placable 4 delete effect 5 respawn placable 6 reset effect at location
can i do that? im not sure how to remove the effect from a location with the placable it would go away when the placable was destroyed. |
|
Axe Murderer
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 16 Jun 2003 From: California U S A Red, White, & Bluuu |
Posted: Wednesday, 04 November 2009 09:49AM |
|
No need to destroy and recreate the effect, just the placeable only. |
|
spider661
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 25 Dec 2002 |
Posted: Wednesday, 04 November 2009 05:12PM |
|
if I use ApplyEffectAtLocation rather then to the object then I would have to destroy the effect also or the object would move but the effect would stay in the same place. |
|
spider661
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 25 Dec 2002 |
Posted: Thursday, 05 November 2009 09:01AM |
well i did it will an invis object and the worked.
but i would still like to know how to find and remove an effect from a location that would be a nice function to have later down the road. |
|
kalbaern
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 25 Apr 2006 |
Posted: Thursday, 05 November 2009 10:43PM |
|
Or make the effect one with a set duration that destroys itself to coincide withthe second placeable and effect appearing elsewhere. |
|
Axe Murderer
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 16 Jun 2003 From: California U S A Red, White, & Bluuu |
Posted: Friday, 06 November 2009 12:49AM |
Unless it is an AOE type effect, you cannot find an effect applied at a location once it is up. You'll have to work out a way to apply it temporary and refresh it periodically based on a condition if you want something like that. Or do what you did and use an invisible object to manage it.
Sorry I didn't realize you were moving the placeable around to different locations. I assumed you were recreating it at the same spot and therefore it would make no sense to remove the effect just to re-establish it in the same location. |
|