GetIntKey (script event)

From modwiki

Jump to: navigation, search

Description

Retrieves the integer value of a specific spawn arg.

Usage

In your script type...

float getIntKey( string key )

Parameters

  • [key] - The spawn argument to return the value of.

Examples

 
$my_entity.getIntKey("pain_threshold");

Notes

This script event returns the value of the specified spawn argument as an integer.


Personal tools
Main