• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Laser pointer on weapons
#1
Rainbow 
Hello bros, i want to know if it?s possible to make weapons to have laser pointer, and any idea or help of how to do this, Thank you!
  Reply
#2
Depends on what effect you wanna go for. This one can be done with SetPlayerAttachedObject:

https://youtu.be/SSvLRHKIdzk?t=66



But if you want to go with the more red dot on the head type of effect instead you need ColAndreas:

https://youtu.be/aSabQWqQBkI?t=38
  Reply
#3
Hello bro, i want like the first one, any idea?
  Reply
#4
When a player switches weapons it checks if the weapon they switched to has a laser, if it has you attach it onto the players hands. If they switch to another weapon you destroy the object.



Most of what you need is here.

https://www.open.mp/docs/scripting/funct...chedObject

And the laser objects are

https://dev.prineside.com/en/gtasa_samp_...h/?q=laser



Good luck!
  Reply
#5
Thanks bro! have a wonderful day
  Reply


Forum Jump: