SetActionData

Category: Objects / Activity
Since engine version: 1.0 OC

Description

Sets the extra data for the current action. The application of the extra data depends on the procedure of the current action. See ActMap procedures.

Syntax

bool SetActionData(any data);

Parameter

data:
Additional parameter for the activity.

Example

func ControlUse(object clonk)
{
  clonk->SetAction("Bridge");
  clonk->SetActionData(Material("Gold"));
  clonk->SetComDir(COMD_Up);
}
Script for a special item: lets the clonk build a vertical gold bridge.
See also: GetAction, GetActionTarget, SetAction, SetBridgeActionData, SetComDir, SetDir, SetPhase
Sven2, 2003-06