Raised This Month: $ Target: $400
 0% 

Solved [HELP] Getting Rescue Zone Coords Properly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-23-2021 , 15:33   [HELP] Getting Rescue Zone Coords Properly
Reply With Quote #1

So I'm trying to make this plugin where as a CT you can teleport to the hostage rescue zone from anywhere near the map. I'm trying to get the coordinates for the rescue zone like so:
PHP Code:
new entity = -1Float:tmpOrigin[3];
while ((
entity find_ent_by_class(entity"func_hostage_rescue")))
    {
        
entity_get_vector(entity,EV_VEC_origin,tmpOrigin)
        
FVecIVec(tmpOriging_rescuezone_orgs)
    }
    
        
entity = -1
    
while ((entity find_ent_by_class(entity"info_hostage_rescue")))
    {
        
entity_get_vector(entity,EV_VEC_origin,tmpOrigin)
        
FVecIVec(tmpOriging_rescuezone_orgs)
    } 
But the coordinates take me nowhere near the rescue zone. I've tried this on several cs_ maps. How do you actually get its coordinates properly?...
__________________

Last edited by hellmonja; 06-25-2021 at 12:41. Reason: Solved...
hellmonja is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode