Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - KingDavid

Pages: [1]
1
Modification Help / Interactive Rigid Objects
« on: November 23, 2018, 04:32:25 PM »
So basically I have a weapon add on that spawns a premade .dts file into the world. I have it written as a projectile (idk if this is the right choice) my hopes are to allow it to be moved. How do I allow players and other projectiles to collide with it? Kind of like turning on collision and ray casting with bricks. I’m sure I have the model correct with collision meshes and groups.

I  believe it’s the script that I need to edit. Also, wondering if I should change it to a vehicle.

2
Modification Help / Gui help
« on: June 23, 2014, 02:42:40 PM »
OK, so I had an old topic to help me, sorry but I doubt most have the time to just use Blockland all the time and guess the topic expired. (Add a button)

After a bit of thinking I've decided to make the addon primarily gui edited. This will make it easier for you guys to explain it and for the users to use it.

3
Modification Help / Add a button
« on: March 17, 2014, 08:51:03 PM »
Can somebody tell me the function or code to add a button into a specific gui control?
Is this right?
Code: [Select]
function nameofcontrol::addTab(%this,%tab)
{
nameofcontrol.add(nameofbutton);


if(getWord(nameofbutton.position,0) > 0)
{
nameofbutton.position = 0 SPC 0;
}
else
{
nameofbutton.position = getWord(nameofbutton.position,0) SPC 0;
}

%width = 0;

for(%i = 0;%i < nameofbutton.getCount();%i++)
{
%width += 80;
}

nameofbutton.extent = %width SPC 25;
}

4
Modification Help / Output event trouble[UnSolved]
« on: February 23, 2014, 06:39:27 PM »
I am having problems with my event. You see I am trying to make a store event that uses a GUI. Maybe this has been done before but I cannot find one, if it works fine I will post it into add-ons. As of right now, I need to be able to complete the tasks.
  • Name the window with the output parameters(like the messageBoxDlg)
  • Add multiple parameters(sort of like a list)
I know that this code is rather simple, and I look like a noob, but I don't think the clients other that the host can see it.
Code: [Select]
registerOutputEvent(fxDTSBrick,setStore,"string 100 100");

function StoreGui()
{
    canvas.pushDialog(store);
}
function fxDTSBrick::setStore(%this, %arg1, %client)
{
if(%arg1 $= "")
{
return;
}

commandToClient(%client,'StoreGui',%arg1);

}
Please list what the changes do.

5
Help / scripting problems
« on: July 19, 2011, 04:24:53 AM »
Can someone tell me whats wrong with my script?
Code: [Select]
Loading Add-On: Weapon_G11 (CRC:352579703)
Add-Ons/Weapon_G11/server.cs Line: 445 - Syntax error.
>>> Some error context, with ## on sides of error halt:
   // Basic Item properties

   shapeFile = "./G11.dts";

   emap = true;



   // Specify mount point & offset for 3rd person, and eye offset

   // for first person rendering.

   mountPoint = 0;

   offset = "0 0 0";

   eyeOffset = "0.0 1.0 -0.85"

   rotation ##=## eulerToMatrix( "0 0 0" )



   // When firing from a point offset from the eye, muzzle correction

   // will adjust the muzzle vector to point to the eye LOS point.

   // Since this weapon doesn't actually fire from the muzzle point,

   // we need to turn this off. 
>>> Error report complete.

ADD-ON "Weapon_G11" CONTAINS SYNTAX ERRORS

6
Help / Server Problems
« on: July 16, 2011, 08:28:44 PM »
I've been having some problems with Blockland. me, my brother, and my cousin share the same router, but have different keys. The problem is only one of us can host a server at a time. Whenever someone tries to join my server the end up joining the person who started their server first.

Pages: [1]