Find an Object

Discussions about Coding and Scripting
User avatar
Barbie
Godlike
Posts: 2909
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Find an Object

Post by Barbie »

To find an Actor it is possible to iterate over all Actors by "ForEach AllActors". But how to find an Object?

Background: to transfer data between independent packages, I create something like this in the one package:

Code: Select all

class WhatEver extends Object;

var PlayerPawn Player;
var int AnIntVariable;
var string AStringVariable;
and want to access this from another package.

Or is there even a simpler way to exchange data? (GetPropertyText() does not work because the relevant data are in an array.)
"If Origin not in center it be not in center." --Buggie
User avatar
sektor2111
Godlike
Posts: 6433
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Find an Object

Post by sektor2111 »

Except DynamicLoadObject which for me was not that helpful, I used XC iterator "foreach AllObjects" for figuring several loads... Either way this won't report "AllObjects" as I could figure (certain geometry data...), but I'm not sure if is easy to access everything or... I cannot figure how to do certain changes.