Some questions

Some questions

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
HildemarDasce
Posts: 74
Joined: 13 Nov 2005, 12:06

Some questions

Post by HildemarDasce »

Hey everyone,

I'm in the planning stage for a little project, and I've ran into some questions. I'm totally unfamiliar with LUA, so I'm not totally sure what can and can't be done with it.
So here goes a few queries:

1) Conventional air craft. Could you implement some kind of runway landing system with LUA, to replace the default VTOL style planes? Ideally, planes would be limited to landing on built runways, and after landing would be diverted to a connected repair pad (or something similar). Would this be doable? And would it be overly complicated?

2) I also want Mexes to be dependant on centralised nodes. Ie in order for a mex to be active, it has to be within X elmos of a building of type Y. I know this has been done (kind of) in Fibre, but is it tricky to do?

Well, that's it I suppose.
Thanks in advance for any input!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The within range thing is really easy. Hell, I did it in GINTA and that was before Lua was introduced!

Runways won't be easy. You'll have to know that the plane wants to land, direct it to a point near one end of the runway and then manually move it to show the landing.
User avatar
HildemarDasce
Posts: 74
Joined: 13 Nov 2005, 12:06

Post by HildemarDasce »

Okey, good news on the first one then.

About the runway, how about some kind of repair pad with an invisible pad in mid air where the final approach point would be, and an animation that brings in the plane to the runway on the invisible pad?
I guess then all planes would have to have the same cruise altitude, since otherwise you'd have them first 'landing' on the invisible pad, and then making the actual final approach.

Thanks for the reply in any case.

(EDIT)

Another question as well:
I saw that there are some Ammo and Fuel systems floating around, and I was wondering if a unit can be told to specifically supply _only_ ammo or fuel (or both), but without having general TA-style repair/reclaim/whatever capabilites?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

If you implement your own ammo/fuel system you don't need the unit to be capable of doing anything engine-wise.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

WD used to do it in TA I think... might want to ask GrOuNd_ZeRo how far he's gotten.
Post Reply

Return to “Lua Scripts”