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?
Any ideas as to what needs to be done to the staticShape class to remove the networking from it?
About the author
Adam is the owner of Ignition Games, an indie game and software development company.
#2
mNetFlags.set(IsGhost); //however, it IS a client-side object
03/08/2010 (4:58 pm)
mNetFlags.clear(Ghostable); //NOT ghostable – don’t want this networkedmNetFlags.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.
Torque Owner Adam Beer
Ignition Games Inc.