Skip to content

instance_find

CryoEagle edited this page Jan 6, 2019 · 2 revisions

instance_find

Returns list by predict input

Syntax:

instance_find(predicate)
Argument Description
Predicate<T> predicate your requirements for GameObjects

Returns: GameObject list

Description:

Returns list by your requirements for GameObjects like distance.

Example:

List<oSampleObject> myList = instance_find<oSampleObject>(x => x.Position.X > 100 && x.Direction < 270);

This code will return objects with Position.X higher than 100 and x.Direction lower than 270.

Back to Instances

Clone this wiki locally