Pre-Frame 1 Operations on Gameworld. - Page 2

Pre-Frame 1 Operations on Gameworld.

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

Moderator: Moderators

User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Pre-Frame 1 Operations on Gameworld.

Post by Peet »

Argh wrote:I'll have to take a look at THAT's source
lol
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Pre-Frame 1 Operations on Gameworld.

Post by Argh »

[BIG FAT EDIT]

No, it won't work in gadget:Initialize, because it doesn't know the start-positions of the players yet.

I'd forgotten, it needs to occur after a gameframe has passed, so that it won't overwrite anything... drat... lemme see if I can get around that...
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Pre-Frame 1 Operations on Gameworld.

Post by lurker »

Oh. If you want it to be run after people pick positions, then yeah, I'm sure I can get a mod-configurable start frame finished up and included.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Pre-Frame 1 Operations on Gameworld.

Post by Argh »

Yeah, that's kind've vital. Sorry for being unclear. Runs like a charm in gadget:initialize, but then it puts stuff right on top of the commanders, which is what I'd forgotten was the reason I did it frame-based in the first place. I could write code to move people's commanders around afterwards, but I suspect people would not like that, so yeah, if you can get that working, it'd save me a ton of trouble with this... and probably stop things from desyncing from "lag", too, because I could just put it at -150 frames or thereabouts...
Post Reply

Return to “Lua Scripts”