FindObjectOwner

Category: Objects / Search
Since engine version: 4.9.1.0 GWE

Description

Searches for objects by their owner and other criteria, corresponding to FindObject.

Syntax

object FindObjectOwner (id idDef, int iOwner, int iX, int iY, int iWdt, int iHgt, int dwOCF, string szAction, object pActionTarget, object pFindNext);

Parameters

idDef:
[opt] Object type
iOwner:
Owner value for which to search
iX:
[opt] Left boundary coordinate of the target rectangle (x coordinate).
iY:
[opt] Top boundary coordinate of the target rectangle (y coordinate).
iWdt:
[opt] Width of search rectangle
iHgt:
[opt] Height of search rectangle
dwOCF:
[opt] Object attributes. Only objects with all specfied attributes will be returned in the search. 0 finds all objects.
szAction:
[opt] Activity of the object
pActionTarget:
[opt] Activity target of the object. Also see SetAction, GetActionTarget
pFindNext:
[opt] List object after which the search is to be continued. This is used to search through all objects in a loop.

Example

RemoveObject(FindObjectOwner(FLAG, 0));
Removes the flag of the first player.
See also: FindObject, FindObject2, FindObjects, GetOwner, SetOwner
Sven2, November 2001