Scripts / [SOLVED] Help with the creation of the script

Author
Message
0Timon0
6
Years of Service
User Offline
Joined: 22nd Aug 2017
Location:
Posted: 6th Jul 2019 11:08
Guys,
help with writing a script for spawning other triggers with one trigger.
If more, then when a player enters the area of ​​one trigger - there are other triggers.

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Jul 2019 12:24
you can't spawn zones but you can add a variable to toggle when the code should be run or not
i.e.
if zone1_is_active == 1 then
--do zone code here
end

in the script of the zone you wanted to "spawn" the above zone you would say
zone1_is_active = 1
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
0Timon0
6
Years of Service
User Offline
Joined: 22nd Aug 2017
Location:
Posted: 6th Jul 2019 14:53
This post has been marked by the post author as the answer.
Thank! Everything worked out!
The first script is used for the trigger, which should give birth to another.
The second script for the zone that should appear.

Attachments

Login to view attachments
PM

Login to post a reply

Server time is: 2024-04-20 03:31:09
Your offset time is: 2024-04-20 03:31:09