Thread: [FilterScript] Hunting System
View Single Post
Old 23/08/2017, 08:02 AM   #22
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,251
Reputation: 326
Default Re: Hunting System

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:
PHP Code:
Hunting::GoTo(mobid,Float:x,Float:y,bool:disable_moving=false);
Hunting::Stop(mobid,delay=-1);
Hunting::Kill(mobid,playerid=INVALID_PLAYER_ID); 
- Changed callback:
PHP Code:
OnPlayerTakeHuntDrop(playerid,mobid,drop); //return 0 set drop flag 0 
- Added functions:
PHP Code:
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); 
- Added extended function:
PHP Code:
Hunting::GetActiveMob(playerid,mob_state); 
- Added callback:
PHP Code:
OnAnimalScareStateChanged(mobid,playerid,isscared);
OnPlayerHuntDropStateChange(playerid,mobid,drop_state); //only called if press time > 0 
- Added definitions:
PHP Code:
HUNTING_DROP_STATE_FINISH
HUNTING_DROP_STATE_START
HUNTING_DROP_STATE_INTERRUPT 
AbyssMorgan is offline   Reply With Quote