Frictional Games Forum (read-only)
Global objects - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Global objects (/thread-14784.html)



Global objects - nemesis567 - 04-14-2012

Is there any way to create global objects?

I've tried severall ways already.

Also, does AngelS support static local variables? It doesn't seem to.

Thanks for the help.



RE: Global objects - Your Computer - 04-14-2012

AngelScript doesn't support the keyword static for scripts.

You don't explain "global", so i can only guess at an answer.


RE: Global objects - Damascus - 04-14-2012

I don't see what you mean by "global" objects, as the only way to transport items between maps is through the inventory.

Objects function fine between maps, and keep the same internal name as they go through. Scripts for them can be managed by creating an "inventory.hps" file in your maps folder. You can search that for more information.



RE: Global objects - Your Computer - 04-14-2012

(04-14-2012, 09:19 PM)Damascus Wrote: I don't see what you mean by "global" objects, as the only way to transport items between maps is through the inventory.

Objects function fine between maps, and keep the same internal name as they go through. Scripts for them can be managed by creating an "inventory.hps" file in your maps folder. You can search that for more information.

I'm pretty sure he intends "object" to mean an instance of a class.


RE: Global objects - nemesis567 - 04-14-2012

Yes, and there's no need for quoting. It's called object.
Thanks for the helpfull replies.