OnPhotoCapture
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPhotoCapture( PhotoEntity photoEntity, Item item, BasePlayer player, Byte[] array )
{
Puts( "OnPhotoCapture works!" );
}
Location
- InstantCameraTool::TakePhoto(BaseEntity/RPCMessage msg)
csharp
//---
item2.Remove(0f);
Debug.LogError("Sub-entity is not a photo");
return;
}
photoEntity.SetImageData(player.userID, array);
if (Interface.CallHook("OnPhotoCapture", photoEntity, item, player, array) != null)
{
return;
}
if (!player.inventory.GiveItem(item2, null))
{
//---