Page MenuHomeFeedback Tracker

Setvariable/getvariable doesnt work with default map locations
Assigned, WishlistPublic

Description

Cant seem to be able to store data in locations that I havent created myself with createLocation-command. Repro code under, dosent work.

I understand that deletelocation/setposition would be disabled for the map locations, but setvariable/getvariable would be handy if available.

Details

Legacy ID
3745293047
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request
Steps To Reproduce
  • spawn {

_nearestCity = nearestLocation [getPos player, "NameVillage"];
_nearestCity setvariable ["AA","pollo"];
_nearestCity setvariable ["BB","pullo"];
sleep 1;
_nearestCity = nearestLocation [getPos player, "NameVillage"];
hint (_nearestCity getvariable "AA");
sleep 1;
hint (_nearestCity getvariable "BB");
};

Event Timeline

SaOk edited Steps To Reproduce. (Show Details)Mar 20 2015, 12:11 PM
SaOk set Category to Feature Request.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 3745293047.May 8 2016, 11:43 AM
SaOk added a subscriber: SaOk.
SaOk added a comment.Mar 21 2015, 1:34 AM

Looks like its meant to be that way, but would request to allow setvariable/getvariabe to work if possible. Would make it faster to store data for villages. Currently having array for it which is slower read.

SaOk added a comment.Mar 26 2015, 11:42 AM

Thanks for looking into it :)