IsSameTypeAs (script event)

The information on this page is specific to Quake 4 .


Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Compares two entities and determines if they share type.

Usage

float isSameTypeAs( entity ent )

Parameters

  • [ent] - Entity to compare against.

Examples

$my_entity.isSameTypeAs( $my_entity_2 );

Notes

Returns 0 if false, 1 if true.