Search the Community
Showing results for tags 'saveprofilenamespace'.
Found 1 result
-
serverside Hiding script from client as a server
Lordeath19 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have recently created a local server (just hosting from the server browser), this server has some scripts that i don't want to expose to the player (due to them stealing it). I found out you can use the profileNamespace to save data to the profile of the player and as such i am able to store strings, arrays and stuff like that. My problem arises after i try to save scripts into the namespace -> saving them using the saveProfileNamespace (script is callable and is fine so far) -> shutting down the server after finishing playing. Now, when i start the server i am able to load the variables from the namespace and use them, but i can't call\spawn code that i stored inside the profile namespace as it raises this error: Global namespace not passed during: hint "test" Error Local variable in global space in order for you to replicate do the following: 1. start the debug console in an editor mission 2. enter these 2 lines: profileNamespace setVariable ["testFunction",{hint "test";}]; saveProfileNamespace; 3. restart the game 4. start the debug console again 5. enter this line: [] spawn (profileNamespace getVariable "testFunction"); 6. wonder desperately why the function isn't being executed- 22 replies
-
- 1
-
-
- server
- profilenamespace
-
(and 1 more)
Tagged with: