Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
gorkahelmetcomplete.c
Go to the documentation of this file.
1class GorkaHelmet extends HelmetBase
2{
3 //Debug menu Spawn Ground Special
4 override void OnDebugSpawn()
5 {
6 EntityAI entity;
7 if ( Class.CastTo(entity, this) )
8 {
9 entity.GetInventory().CreateInInventory( "GorkaHelmetVisor" );
10 }
11 }
12}
Super root of all classes in Enforce script.
Definition enscript.c:11
override void OnDebugSpawn()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.