Scripts / Delay a script help ?

Author
Message
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 8th Mar 2016 21:02
Does anyone know a one liner to add to a script to delay it for a said amount of seconds ...
Or a way to trigger it through a trigger zone maybe ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
18
Years of Service
Recently Online
Joined: 8th Dec 2005
Location:
Posted: 9th Mar 2016 00:44
you could spawn the entity with the script via the zone spawning method?
it takes a little more than 1 line to add a timer but it's pretty simple to add a single use time delay.
p.s. change "variable" to any name you wish.


lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Mar 2016 11:28
Awesome ..Thanks smallg
Going to test it now
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 9th Mar 2016 13:21
I've wrote this one, work fine, but once.

If you want to test it:



As you can see, I'm calling "door_auto.lua" smallg's script. Thanks a lot smallg.

Add this script to your item. I've trid with a door, and it work fine, but honestly at 4:00 am, not idea how to make it work always.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2024-05-03 15:43:05
Your offset time is: 2024-05-03 15:43:05