Game Development Community

dev|Pro Game Development Curriculum

Plan for Grant McNeil

by Grant McNeil · 04/06/2003 (5:28 pm) · 3 comments

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

#1
04/06/2003 (5:46 pm)
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
#2
04/06/2003 (5:57 pm)
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
#3
04/06/2003 (6:01 pm)
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; <}
...
}