Lua "Pause" command [SOLVED]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Lua "Pause" command [SOLVED]

Post by CressAlbane »

Does anyone know the command for Lua that is like "Pause"?
Such as:
Action
PAUSE 5
Action
Or is this unfeasible? (Would freeze game, etc.)
Last edited by CressAlbane on Thu Mar 25, 2010 3:40 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Lua "Pause" command

Post by Fiodis »

Can you be a bit more specific? What exactly are you trying to stop/start?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Lua "Pause" command

Post by [RDH]Zerted »

You can't pause, but you can set and start a timer, then do something when that timer is up.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Lua "Pause" command

Post by CressAlbane »

Okay, I'll use a timer.
Case Closed!
(Although a PAUSE command would be much simpler.)
I use some other languages a little bit, and I thought there might be a function like this.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Lua "Pause" command [SOLVED]

Post by MercuryNoodles »

Lua does have a Sleep(#) command, but I'm not so sure on its effects ingame.
Post Reply