Problems with Index method insert.

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Makca
GamingTools Subscriber
Posts: 1
Joined: Fri Aug 14, 2009 9:03 am

Problems with Index method insert.

Post by Makca » Wed Jun 09, 2010 1:32 am

Hello. I'm using Innerspace with ISXEVE extension.
I have two indexes
variable index:entity Targets
variable iterator Target
variable index:entity Bubbles
variable iterator Bubble

EVE:DoGetEntities[Targets, CategoryID, CATEGORYID_ENTITY, radius, ${_Me.Ship.MaxTargetRange}]

EVE:DoGetEntities[Bubbles, CategoryID, CATEGORYID_DEPLOYABLE, radius, ${_Me.Ship.MaxTargetRange}]

Each index is not empty.

Bubbles:GetIterator[Bubble]

if ${Bubble:First(exists)}
{
do
{

Targets:Insert[Bubble.Value]
}
while ${Bubble:Next(exists)}
}

I can't understand why Targets:Insert[Bubble.Value] returns NULL and don't add Bubble.Value to Targets index?
Bubble.Value.Name in loop returns right name of object.

Post Reply