Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parameter to 'createNamespace' to create a public namespace #381

Merged
merged 2 commits into from
Jun 18, 2016

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Jun 16, 2016

  • title
  • on a global (public) pseudo namespace one can use setVariable pulic
  • I made a "Static" dummy object, because the game logics (which have to be created with createUnit) have AI overhead ...
  • I use isEqualTo true instead of forcing a with params because that would break bwc (on screen error) in case someone uses call CBA_fnc_.... That syntax carries over the _this variable from the parent scope ...

@commy2 commy2 added the Feature label Jun 16, 2016
@commy2 commy2 added this to the 2.4.2 milestone Jun 16, 2016
@PabstMirror
Copy link
Contributor

Tagging @NouberNou - for his experience with hashes.

I thought there might have been a possible issue with the game dropping data on some objects like Houses/Static.

@commy2
Copy link
Contributor Author

commy2 commented Jun 16, 2016

You shouldn't put variables on streamed objects (map objects). This is a script created "building" and the variables should be persistent even if the "building" is far away.

@commy2
Copy link
Contributor Author

commy2 commented Jun 16, 2016

Now word of warning before you bash your head against a wall as to “why it ain’t working with this object?!?”. Houses for example like other map objects (and I mean map objects that have been added during map creation, not mission objects) are streamed. Think about it, the maps in ArmA are huge so even if you can load the whole map you will be using too much computer power. This is unnecessary, so map objects are streamed to you as you go. This means that if you attach a variable to an object on your map and try to make it global, on other computers the same object might not exist yet. And when the object appears later on other computers, it might not have variable you attached to it, so remember this.

http://killzonekid.com/arma-scripting-tutorials-variables-part-3/

@Killswitch00 Killswitch00 merged commit f7f5010 into master Jun 18, 2016
@thojkooi thojkooi deleted the global_cba_namespace branch June 18, 2016 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants