IsA (script event)

From modwiki

Jump to: navigation, search
Image:Q4square_bg.png The information on this page is specific to Quake 4.

Description

Determines if an entity is of a certain type.

Usage

In your script type...

float isA( string className )

Parameters

  • [className] - Type of entity you're comparing to.

Examples

$my_entity.isA( "info_player_start" );

Notes

Returns 0 if false, 1 if true.


Personal tools
Main