travhimself 10 Posted September 2, 2015 I have a good general understanding of profileNamespace, and how to set and retrieve variables from it. My question pertains to a detail of how the game determines which player's profileNamespace to act on. If you look at the doc page, it says: Returns the global namespace attached to the active user profile. Now, it's pretty obvious that if a player calls a script (say, via addAction), and that script sets a variable in the profileNamespace, that player's profile is the "active user profile", and so that's the player that will be acted on. My question is, are there other ways to set the active user profile? Let's say I have a script that runs server-side. I want to pass a "player" object to that script, and have the script act on that player's profileNamespace. Can I do such a thing? Share this post Link to post Share on other sites
SilentSpike 84 Posted September 2, 2015 You're question doesn't really make sense :P. It sounds like you've misunderstood what a namespace is to me. The namespace is always on the local machine, profileNamespace is the local machine's active profile namespace (profile being the profiles that can be switched between in the main menu). Player objects are entirely separate from namespaces, you just need to run the code local to whichever client you desire. Do I understand correctly that you want to execute some code such that it runs local to a specific player object so that you can write to their client's profileNamespace? https://community.bistudio.com/wiki/remoteExec Share this post Link to post Share on other sites
travhimself 10 Posted September 2, 2015 Do I understand correctly that you want to execute some code such that it runs local to a specific player object so that you can write to their client's profileNamespace? https://community.bistudio.com/wiki/remoteExec Yes, exactly! It's a miracle you were able to understand what the hell I was talking about. :) RemoteExec is just what I needed: a way to execute some code in the context of a specific player. Thanks a bunch for your help, SilentSpike. I owe you a beer. (PS: For others who might need help on this, make sure you whitelist your functions in CfgRemoteExec.) Share this post Link to post Share on other sites