Game Development Community

Render object only on client side?

by Sean Oloughlin · in Torque Game Engine · 10/02/2012 (6:38 am) · 3 replies

How do i render an object only on a client, thanks.

#1
10/02/2012 (9:21 am)
Depends on the object tbh.
For particle emitters, this is what I did for the IPS Pro:
class loc_ParticleEmitterNode : public ParticleEmitterNode
{
	typedef ParticleEmitterNode Parent;
public:
	loc_ParticleEmitterNode(){ 
		mNetFlags.clear(Ghostable | ScopeAlways);
		mNetFlags.set(IsGhost);  
	};
};
#2
10/02/2012 (6:21 pm)
its a physic's object.
#3
10/05/2012 (12:48 pm)
Have you tried the above?
I don't know what works and what does not. You should look through the class for any function or code block that is executed on server solely.
The particle emitters don't execute anything on the server of significance therefore I could just create a subclass which was ghost-only.