Brian Hill's Forum Posts
| Thread | Post | Date Posted |
|---|---|---|
| Vehicle physics bug (vehicle sticking to terrain or objects) | Yeah, I think that this line: [code] if (!mRigid.atRest) [/code] Should be like this: [cod... read more | 09/04/2007 (2:54 pm) |
| A spaceship made of dif objects | @Robert That's really pretty good. I've been making gameplay compromises to get around this probl... read more | 08/23/2007 (2:55 pm) |
| ApplyImpulse on flyingVehicle...help? | I'd look at using a PhysicalZone instead of a trigger/impulse. The appliedForce field of the physica... read more | 08/02/2007 (2:39 pm) |
| Sun & Terrain | If you want the appearance of a second sun, but don't want light from it to affect shadows, you coul... read more | 06/13/2007 (9:07 am) |
| First person mounted image disappears at certain angles | I think I ran into this once when the mounted image wasn't fully inside the player's bounding box at... read more | 06/12/2007 (4:02 pm) |
| Copying Argv values is driving me crazy | I think all you are copying in your example is the original pointer to pRequest->mArgv, not the actu... read more | 06/05/2007 (5:17 pm) |
| Java with tge & tge advanced? | "Possible" is one of those funny words. You can't do anything with Java in TGE/TGEA out of the b... read more | 05/20/2007 (7:22 pm) |
| Scripted Behavior Removal | Without looking too deeply at it, I'd try something like this: [code] %this.owner.schedule(10,re... read more | 05/20/2007 (12:02 pm) |
| Undergound Base | Oh, I hate floor grating like in those last few pictures. It looks nice, but if you drop your car ke... read more | 05/08/2007 (4:28 pm) |
| Datablock/Namespace, trying to make my own datablocks | @Zod I think there might be an issue with naming a datablock that you're copying the same as a sc... read more | 04/15/2007 (7:58 am) |
| Datablock/Namespace, trying to make my own datablocks | That's a confusing one, and took me a few minutes to figure out. When you call %player.damage(etc... read more | 04/15/2007 (7:33 am) |
| Datablock/Namespace, trying to make my own datablocks | Well, 'Armor' is set as the script class of PlayerData, not player, and I'm not sure where you're se... read more | 04/15/2007 (7:17 am) |
| Datablock/Namespace, trying to make my own datablocks | I think instead of calling '$bob.Cheer()', you should be calling '$bob.getDatablock().Cheer()'.... read more | 04/15/2007 (6:54 am) |
| 2 playable characters | Any time i use global variables for something specifically player-related, I hear a tiny voice in my... read more | 04/07/2007 (10:26 pm) |
| 2 playable characters | I did this in a prototype I was working on. I don't have time to dig out code examples right now, so... read more | 04/03/2007 (5:45 am) |
| Waiting for a debugger to connect to telnet | It would be a lot easier just to execute your unit tests from the telnet connection itself. Write a ... read more | 03/27/2007 (3:20 pm) |
| Using eval | Try throwing a 'return' in there to return the value, like this: $a=eval("return $b.count();"); ec... read more | 02/21/2007 (5:08 am) |
| Vehicles in Game | Do you see a vehicles category in the Shapes section of the world editor 'creator' (assuming you set... read more | 02/15/2007 (2:29 pm) |
| ID's not matching (and changing)? | [quote] I'm guessing here that you are crossing the server-client memory boundary, and in fact are ... read more | 02/13/2007 (1:31 pm) |
| ID's not matching (and changing)? | Here's the resource I was working from most recently: WoW Player Control Emulation http://www.gara... read more | 02/13/2007 (12:48 pm) |
| ID's not matching (and changing)? | BTW, I am doing something similar, in that I have a gameTSCtrl that tracks a reference to a selected... read more | 02/13/2007 (12:35 pm) |
| A level with no gravity ? | If you can't modify the engine source, you could try to achieve something similar to zero-G by creat... read more | 02/13/2007 (12:28 pm) |
| ID's not matching (and changing)? | If the client-side ID changes when it goes out of view, could that mean that it's going out of scope... read more | 02/13/2007 (11:39 am) |
| Constructors | @Stephen Pedanticalness is important when dealing with code. Thanks for the distinction.... read more | 02/11/2007 (8:59 pm) |
| Constructors | I'd suggest overridding 'onAdd' in script. It gets called for each instance when it's added to the s... read more | 02/11/2007 (7:13 pm) |
| How would I add a dts as a child of a dif? | I think the root of the problem is that you're moving a dif object. Torque doesn't deal with moving ... read more | 02/06/2007 (5:00 am) |
| Mac Torque - Intel vs PPC | The latest builds for mac are Universal binaries, so they'll run natively on either PPC or Intel. If... read more | 01/31/2007 (5:02 pm) |
| Advanced Camera on AIPlayer | Here's an excerpt of the code that's working for me: [code] function GameConnection::onClientEnter... read more | 01/30/2007 (5:26 pm) |
| Advanced Camera on AIPlayer | One more thing, are you calling something like 'ClientGroup.getObject(0).setCameraObject(%advCameraR... read more | 01/30/2007 (5:19 pm) |
| Advanced Camera on AIPlayer | I don't think you want to set the target and player objects to the same object. I usually leave the ... read more | 01/30/2007 (5:09 pm) |
| Dual Weapon Problem | The only resource that I've seen that even begins to implement melee weapons sensibly is here: http... read more | 01/13/2007 (8:30 pm) |
| Ending missions and moving to the next level | You could try something like this: [code] //every time you create a bad guy that counts toward //... read more | 01/13/2007 (7:25 pm) |
| Mixing interior and exterior scenes | I think the default maximum area a terrain object can cover is about 2km x 2km. You can have many BS... read more | 01/09/2007 (6:56 pm) |
| Making a loadLevel() function and an onEnter() function | Try something like this: [code] function t2dTrigger::onEnter(%this,%obj) { %this.getScenegraph... read more | 01/06/2007 (11:43 am) |
| Sending array | You can't send arrays. In fact, there aren't really arrays in TorqueScript -- it's just way of notat... read more | 01/05/2007 (4:54 am) |
| Connecting Levels With Trigger | On this line: [code] finish1 = %this; [/code] This is wrong. You can't assign a class from a var... read more | 01/04/2007 (3:09 pm) |
| CommandToServer and commandToClient | Yes, it's doing it on the server side (I did it in a script function on GameConnection). I looked ov... read more | 12/23/2006 (7:00 pm) |
| CommandToServer and commandToClient | Well, that isn't working for me. When I call %clientConnection.getGhostID on the vehicle the player ... read more | 12/22/2006 (5:24 pm) |
| CommandToServer and commandToClient | Here's another resource about this I just came across: http://www.garagegames.com/index.php?sec=mg&... read more | 12/22/2006 (3:57 pm) |
| CommandToServer and commandToClient | Here's a thread I found about this: http://www.garagegames.com/mg/forums/result.thread.php?qt=27399... read more | 12/22/2006 (3:53 pm) |
| CommandToServer and commandToClient | Yes, I did do it with both client and server on the same machine, but I didn't use globals to do it ... read more | 12/22/2006 (3:38 pm) |
| CommandToServer and commandToClient | Hmm...I do something similar with an Array instance, and it seems to be valid on the client side: ... read more | 12/22/2006 (3:37 pm) |
| CommandToServer and commandToClient | That's the part I'm always confused about. I think, based on my own experience, that you only nee... read more | 12/22/2006 (3:28 pm) |
| CommandToServer and commandToClient | No, I think it does exist on the client side if it's a GameBase subclass. I think that's what the wh... read more | 12/22/2006 (3:03 pm) |
| CommandToServer and commandToClient | Yes and no -- when scripting, there is the appearance of being able to send pretty much any variable... read more | 12/22/2006 (2:10 pm) |
| OnCollision function, seperating players from bots. | Hmm...are you sure '%whateverYourPlayerObjectIs.getControllingClient()>0' doesn't work? I use it mys... read more | 12/20/2006 (7:54 pm) |
| OnCollision function, seperating players from bots. | If, as in the FPS example code, you are setting a dynamic '%player.client' variable to the client in... read more | 12/20/2006 (7:38 pm) |
| SetMoveDestination missing on player? | There's a resource to help with player target locking: http://www.garagegames.com/index.php?sec=mg&... read more | 12/19/2006 (6:42 pm) |
| Rotating the camera with the weapon | I'd look at the turret resource: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view... read more | 12/17/2006 (1:39 pm) |
| Help with vector components | If I'm understanding your question correctly, vectors as viewed from torque script are just strings,... read more | 12/17/2006 (12:43 pm) |