Previous Blog Next Blog
Prev/Next Blog
by date

Plan for Grant McNeil

Plan for Grant McNeil
Name:Grant McNeil
Date Posted:Apr 07, 2003
Rating:Not Rated
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Grant McNeil

Blog post
Well GarageGames,

I've tried several times, but Torque scripting and I dont mix. I get everything that resembles C++, and dont get anything else. which is funny, because I learned almost everything there is to know about python in 4 days. but torque script just doesn't click for me.

Other then that, things have been going well. I put timers and Font into my basecode last night, really simple, but Timers are fun to code. Mostley because its easy.

Well, I have a few questions if anyone viewing my .plan would like to answer them, I dont think its worth a forum thread:

1. okay, whats the difference between %this and %obj?

2. okay, i have seen class functions in the script, but then I see weird stuff like "datablock ParticleData(CrossbowBoltParticle)" and only know that datablock is for server->client information, CrossBoltParticle is whats being passed in, and I have no Idea where ParticleData is coming from.

3. I see a whole bunch of initilizers in the datablocks, amd I would like to know how I could find out about all the initilizers for a datablock.

anyway, if you answer those, thanks,

--Grant

Recent Blog Posts
List:10/25/05 - Plan for Grant McNeil
10/21/05 - Plan for Grant McNeil
06/17/03 - Plan for Grant McNeil
05/13/03 - Plan for Grant McNeil
04/07/03 - Plan for Grant McNeil
03/28/03 - Plan for Grant McNeil
12/14/02 - Plan for Grant McNeil
10/14/02 - Plan for Grant McNeil

Submit ResourceSubmit your own resources!

Pat Wilson   (Apr 07, 2003 at 00:46 GMT)
1. okay, whats the difference between %this and %obj?
Variable name (unless %this is a reserved variable or something, I don't know if that is the case, I don't think so)

2. okay, i have seen class functions in the script, but then I see weird stuff like "datablock ParticleData(CrossbowBoltParticle)" and only know that datablock is for server->client information, CrossBoltParticle is whats being passed in, and I have no Idea where ParticleData is coming from.

ParticleData is the class name, CrossBowParticle is an instance of ParticleData which defines the particle behavior for the crossbow bolt's trail

3. I see a whole bunch of initilizers in the datablocks, amd I would like to know how I could find out about all the initilizers for a datablock.

Not sure

Daniel Neilsen   (Apr 07, 2003 at 00:57 GMT)
1) Nothing. They are both just variables. Neither is anything special and can be differnet in each function.

2) CrossbowBoltParticle is the name of the datablock. ParticleData is the type (or class) or the datablock.

3) Not sure exactly what you mean by this sorry

Grant McNeil   (Apr 07, 2003 at 01:01 GMT)
CLICK!!!

okay, nevermind, I got it as soon as I looked up Particledata in the source:

class ParticleData : public SimDataBlock
{
...
public:
F32 dragCoefficient; <}
F32 windCoefficient; <} what I was talking about in 3
F32 gravityCoefficient; <}
...
}

You must be a member and be logged in to either append comments or rate this resource.