View Issue Details

IDProjectCategoryView StatusLast Update
0000439Gameplay + OpenGL[All Projects] Featurepublic2017-03-16 15:36
ReporterMajor Cooke 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionwon't fix 
Summary0000439: GetProperty function
DescriptionTrying to get a property of an item inside the menu can prove to be a bit of a daunting issue... Is there any way in which one could retrieve a property, whether it's a custom property or a real one without having to find it first, like through a GetProperty function?

I.e. GetProperty(MyItemClass, MyProperty)

Class MyItemClass
{
     int MyProperty;
     property MyProperty: MyProperty;
}
TagsNo tags attached.

Relationships

Activities

Graf Zahl

Graf Zahl

2017-03-16 12:27

administrator   ~0001019

A property can be assigned multiple variables so a universal solution is not doable. Moreover, properties are compiler data, the compiled scripts or native know nothing about them.

What's the problem of accessing the variable the property is assigned to?
Major Cooke

Major Cooke

2017-03-16 13:39

reporter   ~0001026

Mainly that I cannot access what the property without it being in something's inventory first. I.e. it has to be in the player's inventory in order to grab the properties.
ZZYZX

ZZYZX

2017-03-16 15:36

reporter   ~0001027

Last edited: 2017-03-16 15:36

View 2 revisions

That's a problem with not being able to access defaults of a class externally. Unless we already can.

Issue History

Date Modified Username Field Change
2017-03-15 22:16 Major Cooke New Issue
2017-03-16 12:27 Graf Zahl Status new => closed
2017-03-16 12:27 Graf Zahl Resolution open => won't fix
2017-03-16 12:27 Graf Zahl Note Added: 0001019
2017-03-16 13:39 Major Cooke Note Added: 0001026
2017-03-16 15:36 ZZYZX Note Added: 0001027
2017-03-16 15:36 ZZYZX Note Edited: 0001027 View Revisions