Enter

Category: Objects / Position
Since engine version: 4.6.5.0 CP

Description

Moves an object into the contents of another object. This call invokes no RejectCollect, Collection, or ActivateEntracnce callbacks in the target object. It does, however, cause RejectEntrance and Entrance callbacks in the entering object.

Syntax

bool Enter (object pTarget, object pObj);

Parameters

pTarget:
Target container
pObj:
[opt] Object to be moved into the target container. Can be 0 in local calls.

Example

Enter(FindObject(HUT1), GetCursor(0));
The selected clonk is moved into the first found hut.
See also: Collect, Exit
Sven2, November 2001