logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
ApplyVFXForPC() working with Duration type effects?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Jun 20, 2012 18:14    Post subject: ApplyVFXForPC() working with Duration type effects? Reply with quote

I just had an idea, of how to get Duration type effects working in such a way that only one player can see the effect, and another cannot.


Code:

// Sets the visibility of oObject for everybody
void NWNXFuncs_SetVisibilityOverride(object oObject, int nVisibilityType);

// Sets whether oObject2 can see oObject1
void NWNXFuncs_SetVisibility(object oObject1, object oObject2, int nVisibility);





Spawn a placeable (invisible object) at location x
Set Visibility Override for that object so no one can see it
Set the Visibility using the second method, so oPC Can see the invisible object

Apply any Duration type VFX to the object, and because oPC is the only one who can see the object, it should allow him and only him to see the visual effect.

Granted - Glows etc, wont work - well, they will, but it looks like a glowing patch of ground.
But premonition type effects would appear and fade away naturally.

A wrapper function can also be setup to destroy the object at the end of the duration too.

Just posting this incase someone needed to try it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group