IsSameTypeAs (script event)

From modwiki

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

Description

Compares two entities and determines if they share type.

Usage

In your script type...

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.


Personal tools
Main