Objects invisible to some, but not others?
Objects invisible to some, but not others?
I'm making a mod that involves morphed players, and these morphed players spawn red circles that rise up from their feet to their heads. Sounds cool, right? In reality it gets kind of annoying for the person spawning them, so I was wondering if I could somehow make the sprites invisible to them. They have a unique class and TID.
Last edited by Krispy on Fri Apr 05, 2013 3:21 am, edited 1 time in total.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Objects invisible to some, but not others?
If these circles are just for the visuals you should be able to spawn them in a CLIENTSIDE script and prevent them from being spawned on the console player's machine by checking ConsolePlayerNumber(). This will break though when spying through the eyes of another player.
RE: Objects invisible to some, but not others?
Well, spying is not allowed in this mod, so that won't be a problem
. Now for this script you recommend: I was thinking of using something like this:
except with that ConsolePlayerNumber() check you mentioned. Could you show me how to use it? :allears:

Code: Select all
script 69 enter clientside
{
Spawn("RedSeekerHat", GetActorX(1), GetActorY(1), GetActorZ(1));
delay (8);
restart;
}
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Objects invisible to some, but not others?
Putting the content of your script into a "if ( PlayerNumber() != ConsolePlayerNumber() )" block should do the trick.
RE: Objects invisible to some, but not others?
Thanks a lot.