Attaching a label to a bodypart?
#1

Is it possible to do what title says?

Any kind of label?

I'm trying to do this when a player is hit on a specific body part.

If not, do you have any suggestions for an alternative?
Reply
#2

Yes you can do it by creating like 5 3D textdraw or , by specifiying Coordinate / Offsets of body parts in array and changing them accordign to body hit ( idk if u can change directly through a native function ,but you can always do it by Delete and recreate )
then set text etc..
just a hint
Reply
#3

What about allowing other people seeing the bodypart hit?
Reply
#4

Quote:
Originally Posted by Dokins
Посмотреть сообщение
What about allowing other people seeing the bodypart hit?
Yep , when you attach 3D text other people will be able to see it , if done correctly.
Reply
#5

How can I get the offset, is it skin specific or is every model the same offsets?
Reply
#6

Quote:
Originally Posted by Dokins
Посмотреть сообщение
How can I get the offset, is it skin specific or is every model the same offsets?
Well for 3D text it isnt specfic. You have to move X Y Z from here:
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);

its pretty easy to do so tbh
Reply
#7

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)