25 lines
330 B
Plaintext
25 lines
330 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oObject=OBJECT_SELF;
|
||
|
object oPC=GetPCSpeaker();
|
||
|
object oAmmo=GetItemPossessedBy(oPC,"jw_ammo_stone");
|
||
|
|
||
|
if (GetIsObjectValid(oAmmo))
|
||
|
|
||
|
{
|
||
|
ActionTakeItem(oAmmo,oPC);
|
||
|
SpeakString("Catapult loaded and ready to go");
|
||
|
PlaySound("as_cv_woodframe1");
|
||
|
}
|
||
|
|
||
|
else
|
||
|
{
|
||
|
SpeakString("You don't have any ammo to place");
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|