Game Development Community

Client side StaticShape?

by Adam Beer · in Torque 3D Professional · 03/06/2010 (1:00 pm) · 4 replies

I am trying to create a copy of the class staticShape called staticClientShape that is created on the client simulation but isnt ghosted on the server. I am using it as a marker and each client should have their own. The problem is when you are hosting a game and others join it, when the host creates their marker, it is sent to all the other clients. I want to just create a special class that makes it so this marker isnt networked, just rendered on the client that created it.

Any ideas as to what needs to be done to the staticShape class to remove the networking from it?

#1
03/08/2010 (4:23 pm)
Anyone know how to do this?
#2
03/08/2010 (4:58 pm)
mNetFlags.clear(Ghostable); //NOT ghostable – don’t want this networked
mNetFlags.set(IsGhost); //however, it IS a client-side object
#3
03/08/2010 (5:08 pm)
But I thought Static Shapes were a one time load. Why bother?
#4
03/08/2010 (6:34 pm)
Thanks alot, that made it work. Now my next issue is onAdd isnt getting called. How do you call a function like that on the client? I am just trying to get the shape to play an animation.