SetPlrViewRange

Category: Player / View
Since engine version: 4.9.1.0 GWE

Description

Sets the view distance of an object.

Syntax

bool SetPlrViewRange (int iRange, object pObj, bool fExact);

Parameters

iRange:
View distance in pixels.
pObj:
Object the view distance of which you want to set. Can be 0 in locall calls.
fExact:
Must be true in order to set values less than 128.

Remark

Due to the fuzzyness of the fog of war this will only be an approximation.

Example

/* Wird bei Doppelklick auf Graben aufgerufen */
protected func Activate(pClonk)
{
	// Den Clonk blenden
	SetPlrViewRange(0, pClonk);
	// Schmerzensschrei 
	Sound("Scream", pClonk);
	return(1);
}
				
Confused the acid phile with the eye drops, did ya?
See also: SetFoW, SetPlrView
wipfmetz, August 2002