Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Laser pointer on weapons

 
  • 0 Vote(s) - 0 Average
Pawn Laser pointer on weapons
3kisde
Offline

Burgershot Member
Posts: 4
Threads: 2
Joined: Oct 2020
Reputation: 0
Location: In my house
#1
2020-10-12, 07:32 PM
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!
LaszloR1
Offline

Bench racer

Posts: 55
Threads: 2
Joined: Apr 2019
Reputation: 3
#2
2020-10-13, 08:47 AM (This post was last modified: 2020-10-14, 11:32 AM by LaszloR1.)
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
3kisde
Offline

Burgershot Member
Posts: 4
Threads: 2
Joined: Oct 2020
Reputation: 0
Location: In my house
#3
2020-10-13, 10:21 PM
Hello bro, i want like the first one, any idea?
LaszloR1
Offline

Bench racer

Posts: 55
Threads: 2
Joined: Apr 2019
Reputation: 3
#4
2020-10-14, 11:29 AM (This post was last modified: 2020-10-14, 11:31 AM by LaszloR1.)
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/functions/SetPlayerAttachedObject
And the laser objects are
https://dev.prineside.com/en/gtasa_samp_model_id/search/?q=laser

Good luck!
3kisde
Offline

Burgershot Member
Posts: 4
Threads: 2
Joined: Oct 2020
Reputation: 0
Location: In my house
#5
2020-10-14, 07:15 PM
Thanks bro! have a wonderful day
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode