Scripts / Spawn or Activate Storyinzone

Author
Message
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 27th May 2020 18:56
Is it possible to spawn/activate a Story Zone from an entity?
Julian - increasingly disillusioned and jaded
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 29th May 2020 03:11
IDk? Please test and let us know...

Github would probably get ignored for GG Classic;

https://forum.game-guru.com/thread/220600
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th May 2020 10:06
Yes but you'll have to do it manually as the ifused field doesn't support zones.

So in the zone script init(e) function set
SetActivated(e,-1)
and in the main(e) check that value at the top
if g_Entity[e]['activated'] == -1 then
return
end

Then you can change the value from some other entity based on your conditions with
SetActivated(#,1)
(Where # is the entity number of the zone)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 30th May 2020 14:02
Thanks. That works.
Julian - increasingly disillusioned and jaded
PM

Login to post a reply

Server time is: 2024-12-22 02:58:44
Your offset time is: 2024-12-22 02:58:44