Before I ask my questions, here's my programming background...
Programmed BASIC on Vic20, C-64, TRS 80 CoCo back in the day. Most recently learned scripting for Neverwinter Nights (completed several modules) and some Blitz Basic. Decided that I didn't want to write my own engine and am thinking about buying 3DGS. Played with the demo a little (before reading manuals) and essentially wasted my 30 days. I read through the C-Script manual and now have a question about pointers (which I have never used before). I just want to make sure I understand them correctly.
First question:
If I declare this...
Code:
entity* projectile;
And I make a "missile" entity and assign it an action such as...
Code:
action assign_projectiles
{
projectile=me;
}
I can then address the missile entity using something such as...
Code:
projectile.x += intXoffset;
Am I correct in this assumption?
Second question:
Assuming the above is correct, can I assign the "assign_projectiles" action to other entities and control them all simultaneously using the projectile pointer?
Third question:
Can an entity (or anything else for that matter) have multiple pointers assigned to it?