Game Development Community

decalManagerAddDecal() on Dedicated Server

by Quinton Delpeche · in Torque 3D Professional · 10/12/2013 (9:34 am) · 2 replies

Is there a trick to getting Decals created through this method:

decalManagerAddDecal(Point3F position, Point3F normal, float rot, float scale, DecalData decalData, bool isImmortal=false);

... to display on all clients connected to a dedicated server. I have tried various things and I am just not coming right. Trawled through most of the forums today and spent a large time on various resources ... but I just can't get it to work.

It works perfectly on Single Player, but I just can't get it to work on Multi Player.

Any help will be greatly appreciated. Thanks. 8-}

About the author

Gobbo Games is an Independent Games Development company operating from Durban in South Africa. We believe in creating high-quality cost-effective games that remain true to the belief of Independent Game Developers around the world.


#1
10/13/2013 (5:57 am)
decalManagerAddDecal is a client side function isn't it? So, you need to have your server send a command to each client, and have that client use the decalManagerAddDecal command.
#2
10/13/2013 (6:30 am)
Yeah ... I was doing that but I was getting an Invalid Decal DataBlock Error. I have fixed the problem now ... This thread helped me:

http://www.garagegames.com/community/forums/viewthread/130228

I converted the code to a ClientCmd early this morning ... another day down but the final result is well worth it. The next video for Re-Spawn is probably going to resemble something similar to Texas Chainsaw Massacre ... might have to get it PEGI rated. 8-}