23.08.2017, 08:02
Update v1.2.0:
- Fixed underground spawn
- Added check if spawn pos is out of moving_area
- Added check if spawn pos is out of world
- Updated example code
- Changed function:
- Changed callback:
- Added functions:
- Added extended function:
- Added callback:
- Added definitions:
- Fixed underground spawn
- Added check if spawn pos is out of moving_area
- Added check if spawn pos is out of world
- Updated example code
- Changed function:
PHP код:
Hunting::GoTo(mobid,Float:x,Float:y,bool:disable_moving=false);
Hunting::Stop(mobid,delay=-1);
Hunting::Kill(mobid,playerid=INVALID_PLAYER_ID);
PHP код:
OnPlayerTakeHuntDrop(playerid,mobid,drop); //return 0 set drop flag 0
PHP код:
Hunting::SetPos(mobid,Float:x,Float:y,Float:z,bool:disable_moving=false);
Hunting::ForceRespawn(mobid,Float:x,Float:y,Float:z);
Hunting::GetScaredRange(mobid);
Hunting::SetScaredRange(mobid,Float:range);
Hunting::GetPressTime(mobid);
Hunting::SetPressTime(mobid,miliseconds);
Hunting::GetFacingAngle(mobid);
Hunting::IsScared(mobid);
Hunting::IsPlayerInRange(playerid,mobid,Float:range);
PHP код:
Hunting::GetActiveMob(playerid,mob_state);
PHP код:
OnAnimalScareStateChanged(mobid,playerid,isscared);
OnPlayerHuntDropStateChange(playerid,mobid,drop_state); //only called if press time > 0
PHP код:
HUNTING_DROP_STATE_FINISH
HUNTING_DROP_STATE_START
HUNTING_DROP_STATE_INTERRUPT