Spawning Vehicles in a .LUA?
Posted: Sun Jan 14, 2007 5:42 pm
I'm modding on the PSP, and my only means of modifying it are by making my own mission.lvl, or hex editing anything else.
Knowing this, I was wondering, is it possible to add vehicles into a map just by scripting them in via the .LUA file for a level? Assuming I somehow knew the coordinates of where I wanted to place it.
I know vehicles are supposed to spawn depending on what team owns what control point, but I wouldn't mind if I could get a vehicle to spawn in one place indefinitely.
Like, I want to add an LAAT to Geonosis, somewhere in the big, open area around where the Republic's AT-TE is. Would that be at all possible in the .LUA?
I dunno' if AI flying LAATs use path nodes to navigate, but if they do, it'd mean that the AI wouldn't be able to fly it, as I'm sure there'd be no path nodes on Geonosis. Not that the AI could fly a gunship even if there were path nodes telling it the right places to go.
Knowing this, I was wondering, is it possible to add vehicles into a map just by scripting them in via the .LUA file for a level? Assuming I somehow knew the coordinates of where I wanted to place it.
I know vehicles are supposed to spawn depending on what team owns what control point, but I wouldn't mind if I could get a vehicle to spawn in one place indefinitely.
Like, I want to add an LAAT to Geonosis, somewhere in the big, open area around where the Republic's AT-TE is. Would that be at all possible in the .LUA?
I dunno' if AI flying LAATs use path nodes to navigate, but if they do, it'd mean that the AI wouldn't be able to fly it, as I'm sure there'd be no path nodes on Geonosis. Not that the AI could fly a gunship even if there were path nodes telling it the right places to go.