SA-MP Forums Archive
Projectiles - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Projectiles (/showthread.php?tid=568518)



Projectiles - S4t3K - 22.03.2015

I read somewhere recently that, since 0.3x, it's possible to make scripts which uses projectile informations such as their position (where they have been thrown to I mean).

Can someone explain me how to proceed then ?


Re: Projectiles - Smileys - 22.03.2015

Can you explain it abit more, I really got no clue what you mean lol..


Re: Projectiles - AlonzoTorres - 22.03.2015

[TuT]How to create a Vehicle Shooting (laser) + Some [Trigonometry]

Quote:

Hello everyone. Well i've created a filterscript some months/years ago, In which a player can shoot laser type things from his Vehicle and any vehicle infront of the laser in a specific range would get Destroyed...




Re : Projectiles - S4t3K - 23.03.2015

Sorry for the late answer - I got exams today.

I didn't meant that Alonzo.
I'll explain myself a bit more.

Teargas are completely useless in SA-MP. It would be cool to detect where a teargas has been thrown to by a player.
For example I'm a player, I got a teargas, and I throw it. A callback is called in the script : "OnTeargasThrown(playerid, Float, Float:y, Float:z)" with the pos of the teargas and the playerid of the player who threw it.
I wanna know how to make this callback by myself with correct informations.


Re: Projectiles - SickAttack - 23.03.2015

Probably this will help:
https://sampforum.blast.hk/showthread.php?tid=155456

So basically what that does is calculate the position of the teargas with mapandreas and saves it in variables, you could easily convert it to do what you want and call that function with the correct information.


Re: Projectiles - Kar - 24.03.2015

Quote:
Originally Posted by S4t3K
Посмотреть сообщение
I read somewhere recently that, since 0.3x, it's possible to make scripts which uses projectile informations such as their position (where they have been thrown to I mean).

Can someone explain me how to proceed then ?
You read wrong


Re : Projectiles - S4t3K - 24.03.2015

@Kar : I did not.

Lemme find back the post.

EDIT : http://forum.sa-mp.com/showpost.php?...5&postcount=13


Re: Re : Projectiles - Sew_Sumi - 24.03.2015

I don't think that this, being that they aren't bullet weapons, is possible.

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
https://sampwiki.blast.hk/wiki/GetPlayerLastShotVectors

The best option you have in some way is the MapAndreas with the TearGas script shown earlier... Don't know how accurate it is though judging that it is that old.

Quote:
Originally Posted by SickAttack
Посмотреть сообщение