Object Properties and Variables

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Object Properties and Variables

Post by blckfire »

My question is,

If I have some code like this:

Code: Select all

var something := struct;
something := GetObjProperty(who, "Property");

Later on...

something.elem := "blahblah";
Do I then need to SetObjProperty(who, "Property", something) to save the change?

My answer to this is yes, but I just wanted to be sure about it, since I have a script that constantly changes a structure that is related to a property.
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: Object Properties and Variables

Post by Nando »

Yes. The GetObjProperty / SetObjProperty use CProps (custom properties) on the object. They just store/load a value, not a reference.
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Re: Object Properties and Variables

Post by blckfire »

Thank you for the feedback.
Post Reply