GetNeededMatStr

Category: Objects / Status
Since engine version: 4.9.1.0 GWE

Description

Returns the still needed construction materials of an object

Syntax

string GetNeededMatStr (object pObj);

Parameter

pObj:
Object whose construction material need is queried. Can be 0 in local calls.

Example

/* Wird von der Bau-Action des Clonks aufgerufen */
private func Building()
{
  /* benötigtes Baumaterial abfragen */
  var string=GetNeededMatStr(GetActionTarget());
  /* Ausgeben */
  Message(Format("%s",string),this());
  return(1);
}
				
Talking builder.
See also: ComponentAll, GetComponent, GetCon
wipfmetz, August 2002