Scripts / spawn custom objects after x time

Author
Message
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 19th May 2021 21:35 Edited at: 20th May 2021 10:29
1.I saw this code but could not find it now.(spawn something after x seconds on table)
2.spawn enemy ai on zone after x seconds.(i couldnt find this too.)
thank you for helping.(excuse me for posting here.)
Desktop: corei5, ram32, graphic card6GB
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 20th May 2021 05:12
i search many times for these scripts, and im near to finish my game. its very important to me to be on time.
Desktop: corei5, ram32, graphic card6GB
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th May 2021 20:38
this belongs in scripts forum really.
add a timer and then use the ActivateIfUsed(e) field to spawn your items
like this
(set the health of the entity to how many seconds you want the delay to be)
to make this trigger by a zone you can make the trigger zone 'ifused' field point to this object and not spawn this at start.. then it will chain it's own 'ifused' after the delay.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 21st May 2021 06:36
thank you smallg.
Desktop: corei5, ram32, graphic card6GB
Tauren
8
Years of Service
User Offline
Joined: 25th Jun 2015
Playing: PUBG,Conan Exiles,WoW,HoMM III,MoO 2,Master of Orion 2016
Posted: 22nd May 2021 06:16
Thank you too, smallg your explanations are very helpful !
Thanks for your articles, explanations and examples. You are the best community I have met.
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 22nd May 2021 09:01
I agree, moving to scripts
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-9700K @4.2GHz - 64GB DDR4 RAM - GeForce RTX 2070 SUPER 8GB - 2TB NVe, 1TB NVe, 2TB Hybrid Data Drive
Test PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Asset Manager

Login to post a reply

Server time is: 2024-05-02 08:12:01
Your offset time is: 2024-05-02 08:12:01