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.


Messages - Plornt

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 58
61
Well apparently it isn't even an infinite loop. The saving of duplications is just really slow. Ill refine it later today

62
up your ass.

Give me time I'll work it out today. Be useful and send me a console log next time you complain with no support.

63
Modification Help / Re: Action Adventure Camera Angle
« on: February 05, 2013, 09:14:37 AM »
Oops, yeah I reversed it. No idea why I did. My bad

64
Don't know if this would work for you but you can exclude certain objects
Code: [Select]
%raycast = containerRaycast(%eye, VectorAdd(%eye,VectorScale(%ev,50)),%mask,%ignore_this_object);

65
Gallery / Re: Longest football catch in Blockland [VIDEO]
« on: February 04, 2013, 07:35:29 PM »
Misleading title.
Misleading post, he never said he used a brick :(

66
Modification Help / Re: Check for W or S being pressed
« on: February 04, 2013, 04:50:16 PM »
I highly doubt you can make this nicely in blockland.
Also you can't just check the velocity.
Holding W does not mean I am actually moving forward
Then what do you suggest? At least it will detect that you are holding W if you ARE moving. So that solution is better than nothing.

67
Modification Help / Re: Check for W or S being pressed
« on: February 04, 2013, 08:12:11 AM »
Angles have nothing to do with movement, so yeah your best bet would be to check velocity

68
Modification Help / Re: How Do You View Addon Code
« on: February 03, 2013, 08:40:36 PM »
Just to clarify since you are new to scripting, do what Eepos said above. The TorqueScript package is not required to script for Blockland but it correctly highlights the syntax. So you can use any old text editor, but I believe Microsoft word adds some random stuff when you save files

69
Modification Help / Re: Playertype Help
« on: February 03, 2013, 10:26:27 AM »
Code: [Select]
package death
{
    function PlayerStandardArmor::onDisabled(%this,%player)
    {
        Parent::onDisabled(%this,%player);
    }
};
ActivatePackage(death);

70
Modification Help / Re: How do i make Different shaped spawnpoint bricks?
« on: February 02, 2013, 07:41:30 PM »
Have you tried .save() on the original spawn point brick? Or trace(1);%client.spawnplayer();trace(0);

71
Modification Help / Re: Template needed
« on: February 02, 2013, 02:14:31 AM »
Attempting to code your own whole weapon might be a little difficult without any scripting background. The best you could probably do is find-replace the name of previous weapons. Try other simple scripts that dont involve datablocks for a start. Once you get used to it, and learn how things work come back and attempt this. Fixing your previous mistakes with new knowledge you gained is one of the best ways to learn how things work

72
Modification Help / Re: Getting all the upward bricks
« on: February 02, 2013, 01:34:19 AM »
It is actually pretty difficult. It took me a while to figure out how to do it correctly for the duplicator. It turns out it ended up to be the exact same method the original duplicator used. So your best bet would to look at the duplicator code.

73
Modification Help / Re: Action Adventure Camera Angle
« on: February 01, 2013, 09:23:09 PM »
relative velocity i.e. the velocity in relation to a player's forward vector. So it's like setRelativeVelocity event but backwards.
Lets say you wanted to set the forward velocity by 10
Code: [Select]
%player.setVelocity(vectorScale("10 0 0",%player.getForwardVector()));
Now if you want the velocity to be backwards just scale the forward vector by -1
Code: [Select]
%player.setVelocity(vectorScale("10 0 0",vectorScale(%player.getForwardVector(),-1)));

74
Modification Help / Re: Action Adventure Camera Angle
« on: February 01, 2013, 08:15:12 PM »
Define relative velocity. And you can put the players camera in spy mode for the player, however, the player will not be able to move.

75
Modification Help / Re: Sound files on /command
« on: January 31, 2013, 11:25:14 PM »
Well you have to create a datablock for the wav file. Then you reference that datablock in the serverplay3d. Ill write an example just this one time because you are starting and hopefully you will learn. Not always will you get a full example though
Code: [Select]
//Create the actual beep datablock
datablock AudioProfile(beepSound)
{
   filename    = "./Beep.wav";
   description = AudioClosest3d;
   preload = true;
};
//Create /beep
function servercmdbeep(%client)
{
   //Only play if the player is spawned
   if(isObject(%client.player))
      serverplay3d(beepSound,%client.player.getPosition());
}

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 58