![]() |
|
Stargate EGP status section not updating - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: Stargate EGP status section not updating (/thread-2606.html) |
Stargate EGP status section not updating - udop1 - 23-01-2018 For some reason my EGP screen won't update when a stargate is incoming or inactive: (This is a modified version of my code so you can get the jist of it) Code: interval(100)
EGP:egpBox(20,vec2(325,30),vec2(300,30))
EGP:egpText(21,"All Systems Nominal",vec2(200,14))
EGP:egpColor(21,vec(0,0,0))
EGP:egpSize(21,30)
if(!Stargate:stargateActive())
{
EGP:egpSetText(21,"All Systems Nominal")
EGP:egpColor(21,vec(0,0,0))
EGP:egpPos(21,vec2(200,14))
}
if(Stargate:stargateInbound())
{
EGP:egpSetText(21,"Incoming")
EGP:egpColor(21,vec(255,0,0))
EGP:egpPos(21,vec2(265,14))
}The only problem is that when it is incoming, my EGP screen doesnt update from All Systems Nominal to Incoming and vice versa. Any help? RE: Stargate EGP status section not updating - Kosmos - 24-01-2018 No clue what you did, but this code Code: @name Test
@inputs EGP:wirelink Stargate:entity
interval(100)
EGP:egpBox(20,vec2(325,30),vec2(300,30))
EGP:egpText(21,"All Systems Nominal",vec2(200,14))
EGP:egpColor(21,vec(0,0,0))
EGP:egpSize(21,30)
if(!Stargate:stargateActive())
{
EGP:egpSetText(21,"All Systems Nominal")
EGP:egpColor(21,vec(0,0,0))
EGP:egpPos(21,vec2(200,14))
}
if(Stargate:stargateInbound())
{
EGP:egpSetText(21,"Incoming")
EGP:egpColor(21,vec(255,0,0))
EGP:egpPos(21,vec2(265,14))
}In other words - Resolved: WORKSFORME RE: Stargate EGP status section not updating - udop1 - 24-01-2018 Well for some reason the code doesnt work for me ![]() Ill try again later RE: Stargate EGP status section not updating - udop1 - 24-01-2018 This is some more proof it doesnt seem to work: This is the gate incoming: http://steamcommunity.com/sharedfiles/filedetails/?id=1280068247 This is the gate incoming after I refresh the E2 manually: http://steamcommunity.com/sharedfiles/filedetails/?id=1280068302 This is after the gate shuts down: http://steamcommunity.com/sharedfiles/filedetails/?id=1280068361 This is after the gate shuts down and I manually update the E2: http://steamcommunity.com/sharedfiles/filedetails/?id=1280068405 No matter, I have fixed it now |