28.03.2017, 10:08
Can you provide example code of MissileLaunchAimPlayer ?
CMD:shot(playerid,params[]){
new targetid, Float:x, Float:y, Float:z;
if(sscanf(params,"d",targetid)) return SendClientMessage(playerid,-1,"Use /shot <playerid>");
GetPlayerPos(playerid,x,y,z);
MissileLaunchAimPlayer(targetid,MISSILE_TYPE_EXPLODE_LARGE,5.0,25.0,100.0,x,y,z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid),-1,200.0,MISSILE_OBJECT_HYDRA,x,y,z+100.0,playerid);
return 1;
}
DisableAllPlayerMissileAim(playerid);
MISSILE_OBJECT_BOMB
MISSILE_OBJECT_BOMB_STATIC - rotation rx always is 0.0
MissileLaunch(type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z,worldid,interiorid,playerid, Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz,byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM, bool:remote=false,remote_count=MAX_MISSILE_REMOTE_TARGET,remote_height=1.0,Float:arc_roll=0.0);
OnMissileRequestLaunch(Float:x,Float:y,Float:z,playerid,targetid);
MissileLaunch(type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z,worldid,interiorid,playerid, Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz,byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM, bool:remote=false,remote_count=MAX_MISSILE_REMOTE_TARGET,remote_height=1.0,Float:arc_roll=0.0, Float:damage=-1.0,Float:vehicle_damage=-1.0); MissileLaunchAimPlayer(targetid,type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z, worldid,interiorid,playerid,Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz, byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM,Float:damage=-1.0,Float:vehicle_damage=-1.0); //if damage is -1 mine generated standard DynamicExplosion without DMG system //if vehicle damage is -1 and damage is not -1, vehicle damage now is 750