Category: Objects
/ Activity
Since engine version: 1.0 OC
SetActionTargets
Description
Sets the activity targets of an object. The result depends on the procedure of the current action.
Syntax
void SetActionTargets(object target1, object target2);
Parameters
- target1:
- First target object
- target2:
- [opt] Second target object
Example
protected func Entrance(object into_object) { SetActionTargets(into_object); }
Script for a shield spell using an ATTACH action: when the carrying clonk enters a building, the spell will attach itself to the building. This script will not, however, reattach the spell to the clonk when he leaves the building.