Config Datablocks in the editor
by Tom Perry · in Torque Game Builder · 08/21/2007 (1:27 pm) · 3 replies
Hello everyone,
I'm a little confused about how to get datablocks to appear in the ingame editor. There is a datablocks.cs file in the gamescripts folder, but the datablock I have defined is not appearing in the drop down menu. Heres the datablock.cs file:
Any help would be appriciated :)
I'm a little confused about how to get datablocks to appear in the ingame editor. There is a datablocks.cs file in the gamescripts folder, but the datablock I have defined is not appearing in the drop down menu. Heres the datablock.cs file:
//---------------------------------------------------------------------------------------------
// Torque Game Builder
// Copyright (C) GarageGames.com, Inc.
//---------------------------------------------------------------------------------------------
//
// This is the file you should define your custom datablocks that are to be used
// in the editor.
//
datablock t2dSceneObjectDatablock(pickup)
{
class = "pickup";
size = "2 2";
collisionDetectionMode = "CIRCLE";
collisionCircleScale = "0.5";
collisionActiveSend (false);
collisionActiveReceive (true);
collisionPhysicsSend (false);
collisionPhysicsReceive (false);
};Any help would be appriciated :)
About the author
#2
This is incorrect:
collisionActiveSend (false);
collisionActiveReceive (true);
collisionPhysicsSend (false);
collisionPhysicsReceive (false);
This is correct:
collisionActiveSend = "false"; // or collisionActiveSend = 0;
collisionActiveReceive = "true"; // or collisionActiveReceive = 1;
etc.
08/27/2007 (10:27 am)
That is how you do it and where it goes you just have syntax errors. I would suggest getting torsion to help you finding those in the future.This is incorrect:
collisionActiveSend (false);
collisionActiveReceive (true);
collisionPhysicsSend (false);
collisionPhysicsReceive (false);
This is correct:
collisionActiveSend = "false"; // or collisionActiveSend = 0;
collisionActiveReceive = "true"; // or collisionActiveReceive = 1;
etc.
#3
08/27/2007 (11:14 am)
Doh, damn copy and paste! Cheers James.
Torque 3D Owner Tom Perry