[Include] Missile Launcher
#21

Can you provide example code of MissileLaunchAimPlayer ?
Reply
#22

PHP код:
CMD:shot(playerid,params[]){
    
    new 
targetidFloat:xFloat:yFloat: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;

Reply
#23

I dont understand tx ty tz when there is a targetid
Reply
#24

x,y,z - start position
tx,ty,tz - first target position
After missile moving to tx,ty,tz moving to targetid.

In my example the missile flies first up 100 meters and then flies to the target.

Reply
#25

Update v1.9.0:

- Auto disable all player missiles aim after player death.

- Added function:
PHP код:
DisableAllPlayerMissileAim(playerid); 
- Added new missile_object:
PHP код:
MISSILE_OBJECT_BOMB
MISSILE_OBJECT_BOMB_STATIC 
rotation rx always is 0.0 
Reply
#26

Update v2.0.0:

- Update Arc System for Real Ellipse Arc.

- Updated function:
Код:
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);
Reply
#27

Update v2.1.0:

- Added callback:
PHP код:
OnMissileRequestLaunch(Float:x,Float:y,Float:z,playerid,targetid); 
- Fixed Static Bomb (MISSILE_OBJECT_BOMB_STATIC)
Reply
#28

Update v2.2.0:

- Added support for CreateDynamicExplosionDMG (now missile auto detect player death)

- Added support for damage NPC

- Added support for Streamer Tags

- Updated functions:
Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)