Files
dsrc/sku.0/sys.server/compiled/game/script/ai/equip_weapon.java
T
2018-06-07 00:32:29 +01:00

27 lines
588 B
Java
Executable File

package script.ai;
import script.obj_id;
public class equip_weapon extends script.base_script
{
public equip_weapon()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
if (!aiUsingPrimaryWeapon(self))
{
aiEquipPrimaryWeapon(self);
}
return SCRIPT_CONTINUE;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if (!aiUsingPrimaryWeapon(self))
{
aiEquipPrimaryWeapon(self);
}
return SCRIPT_CONTINUE;
}
}