Scripting Capabilities?

Scripting Capabilities?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
elliotkr
Posts: 10
Joined: 03 Mar 2007, 07:42

Scripting Capabilities?

Post by elliotkr »

Just a question concerning scripting. Is it possible, with the current engine, to script units to change their global position? IE: Not just move the parts of a unit but actually tell the unit to move right 20 degrees, move forward 40 degrees, etc? Maybe it's possible to change their heading via script?

I suppose my main goal would be to script units so that they had intelligent fighting. Such as, a spider unit that dodges back and fourth while it fires, or a peewee kbot that circles it's enemy once it opens fire...things like that.

If there's a good scripting tutorial out there that would explain this without bothering anyone else, I wouldn't mind being directed to that.

Cheers and thanks!
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

Using COB alone, no, this isn't possible.

However, LUA can issue orders to units, and also can be tied to COB...so my answer is maybe. I haven't tried anything with the LUA<->COB stuff yet, but it should be possible.
elliotkr
Posts: 10
Joined: 03 Mar 2007, 07:42

Post by elliotkr »

Hmm, I'll have to look into that and see what there is to see. Thanks for the directions Nemo.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

You'll have to wait a little while, I haven't committed the code yet.
Post Reply

Return to “Game Development”