Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
I'm pretty sure a 'level notify' works for that, it does work from .gsc to .csc so why not the other way around ( never tried )
Also you can't really wait for a DVAR, but you can obv just run a check in a loop to check when it's value changed and then continue your script.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
The only way to go back from CSC to GSC is via dvar values. There is no notify in the engine that GSC will catch from CSC. You can only notify from GSC to CSC. The only way to get client dvar values outside of CSC is via menu files which then send the data to GSC.
GSC -> clientnotify("notifier"); -> level clientnotifiy("notifier");
CSC -> level waittill("notifier");
Examples raw/maps/_zombiemode_tesla.gsc, raw/clientscripts/_zombiemode_tesla.gsc
Should work the same with self notify I think though I'll take a look into clientnotify function.
Edit: Calling clientnotify with no entity before it still acts as level waittill so yeah.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
SparkyMcSparks: you can notify on gsc side to kick off csc function, bot(not) other way around
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
I wonder if you could put a struct in radiant with a script_string kvp of "" and then in clientsctript make a function that takes a var and sets that script_string kvp to it. Then in gsc do a while loop, in a while(1) loop, that while struct.script_string == "" loop, but then once it is changed via client to that string, level notify that string on the gsc side, then set it back to ""?
Huge fail on my part gimme a bit.
I wonder if you could put a struct in radiant with a script_string kvp of ""
Like I said the only way I know to do this is what I did with UGX mod which is send the data via setClientDvar in menufile
I assume anyone who uses this method to send data from CSC to GSC will credit me.