mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
27 lines
588 B
Java
Executable File
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;
|
|
}
|
|
}
|