Search the Community
Showing results for tags 'saving variables'.
Found 1 result
-
Trying to save variables within GRAD Persistence
Robert Tyburne posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Trying to use GRAD to save a variable, which is to be referenced after the mission is restarted to be used as part of an if-then statement to simply delete the zone since it's already been cleared by players. The effect I'm going for is simple, which is a progression of clearing sectors by deleting marker areas (EOS zones) and planting a flag marker saying it's secure once the players destroy an object (like a transmitter). That so far has been simple enough: I'm attempting to set a public variable in the missionNameSpace, as that's what I think GRAD wants in order to save it properly. GRAD Config: For reference, the config is saving vehicles, containers, and markers created during the mission. Player position and inventory is also saved, in addition to credit count as I'm also using GRAD money menu. I use a remoteexeccall to get the save function to go, which hasn't failed yet with all the other data. Once the mission restarts, the following code is run from a separate .sqf called from the initServer.sqf I've also tried combinations of "safyrahnorth" == 1 and safyrahnorth == 1, but the error is that the variable is undefined. If I run the same scripts in the same session, it all executes fine. It's as if the variable "safyrahnorth" is getting destroyed as soon as the server shuts down, which makes me think I'm not executing the GRAD variable save correctly. I'm unclear on where I'm going wrong, and some extra eyeballs would be greatly appreciated. Or suggestions on approaching this differently.- 2 replies
-
- 1
-
- grad
- persistence
-
(and 1 more)
Tagged with: