Projectiles
#1

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 ?
Reply
#2

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

[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...

Reply
#4

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.
Reply
#5

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.
Reply
#6

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
Reply
#7

@Kar : I did not.

Lemme find back the post.

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

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
Посмотреть сообщение
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)