[help] ref to float
Hi.. I need a way to ref to like 5 set of origins that have 3 values... Like:
PHP Code:
PHP Code:
Thanks in advance |
Re: [help] ref to float
For starters, it's better to use the following function to set entity origins using Fakemeta:
Code:
This will update all values such as bounds on the entity as opposed to just setting the origin which won't do these things. With that out of the way, you would reference those origins by passing the value of the first dimension you want to use. The 2d array "ent_origins" can be seen as really being 5 arrays, each with 3 cells inside of them. If you want to reference the 2nd origin, you'd pass this as your parameter: Code:
So to actually set the origin, it would be: Code:
This would set the ent's origin to 300.0,1015.0,190.0. |
Re: [help] ref to float
Thanks
|
| All times are GMT -4. The time now is 09:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.