21 {
23 {
25
27
28 PluginDeveloper module_dev = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
29 EntityAI e = module_dev.SpawnEntityOnGroundPos(PluginSceneManager.PLAYER, obj_name, 100, 0.0, pos);
30
31 if (e != NULL)
32 {
34 {
36 if (item.HasQuantity())
38 }
39
42 }
43 else if (obj_name != "player")
44 {
45 return NULL;
46 }
47 }
48
52
53 return this;
54 }
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
ref array< SceneObject > m_LinkedSceneObjects
void LinkEntityAI(EntityAI e)
ref array< int > m_LinkedSceneObjectsIndices
ref map< SceneObject, Shape > m_LinkedSceneObjectsShapes
string m_ObjectNameOrigin
proto native CGame GetGame()
const string STRING_EMPTY