Menu
Home
About
About GameGuru MAX
Demo Games
Help
Features
Education
News
Contact
Products
GameGuru MAX
GameGuru MAX DLCs
GameGuru Classic
Forums
Login
Forum Home
Search
Scripts
/ arrays? could i use them on entities?
Author
Message
AstrobloodKnight
9
Years of Service
User Offline
Joined:
3rd Aug 2015
Location:
Profile
Posted:
4th Sep 2015 10:29
Link
could a set a array to spawn more then one entities>?
spawnarray[1,2,3,4,5,6,7,8,9,0,10]???
PM
Avram
GameGuru TGC Backer
18
Years of Service
User Offline
Joined:
3rd Sep 2006
Location:
Serbia
Profile
Posted:
4th Sep 2015 15:16
Link
No, not like that. But you might be able to do this:
local tospawn = {1,2,3,4,5} for i,ent in ipairs(tospawn) do Spawn(ent) end
+ Code Snippet
Copy
local tospawn = {1,2,3,4,5} for i,ent in ipairs(tospawn) do Spawn(ent) end
OOP LUA framework for Game Guru
|
Visual LUA designer for Game Guru
PM
Email
Website
3com
10
Years of Service
User Offline
Joined:
18th May 2014
Location:
Catalonia
Profile
Posted:
5th Sep 2015 14:51
Link
@ Avram
Nice stateless iterator. I had tested it, and it works fine.
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
AstrobloodKnight
9
Years of Service
User Offline
Joined:
3rd Aug 2015
Location:
Profile
Posted:
5th Sep 2015 18:24
Link
how many can i spawn a once this way?
could i for say Spawn(3,4,5,6)?
PM
AstrobloodKnight
9
Years of Service
User Offline
Joined:
3rd Aug 2015
Location:
Profile
Posted:
5th Sep 2015 18:24
Link
how many can i spawn a once this way?
could i for say Spawn(3,4,5,6)?
PM
Back to top
Login to post a reply
Server time is:
2024-12-22 05:27:10
Your offset time is:
2024-12-22 05:27:10