[Tutorial] Fixing Sniper Scope's attachment issue
#5

Quote:
Originally Posted by Sreyas
View Post
what if I had 10 objects attached to my head ?
Each attachment has a separate slot ID, so it's easy rather than use slot one you can use two, three, four and so on. And rather than create a special variable for each attachment you can use something like:
Code:
new Attachments[3];
So you can use 3 attachments like that .. (0, 1 and 2). While each attachment has a unique slot ID.

Quote:
Originally Posted by Troydere
View Post
What if the object is not a helmet?
Is the object offset accurate for every skin?
If the attachment is not helmet you can change the offsets and the object ID and it will remain accurate as well as you attach anything to your head.

Quote:
Originally Posted by ISmokezU
View Post
what if my helmet index is 2?
We won't use slot one but slot two, we just need the slot ID to check if the helmet is already attached to head so we can remove it. We can also alternatively relay on the variable.

Tutorial will be updated shortly.
Reply


Messages In This Thread
Fixing Sniper Scope's attachment issue - by Variable™ - 17.03.2017, 20:03
Re: Fixing Sniper Scope's attachment issue - by SyS - 18.03.2017, 01:54
Re: Fixing Sniper Scope's attachment issue - by Toroi - 18.03.2017, 01:59
Re: Fixing Sniper Scope's attachment issue - by ISmokezU - 18.03.2017, 02:18
Re: Fixing Sniper Scope's attachment issue - by Variable™ - 18.03.2017, 07:34

Forum Jump:


Users browsing this thread: 1 Guest(s)