[Solved] Weird Problem with get_user_aiming()
2 Attachment(s)
Hi, i have a big problem with get_user_aiming()!
if i aim at an entity which i have created i get sometimes a valid entityID and sometimes just 0 as the ID. I have noticed that if the entity is on a certain wall in the map i get the ID and on another wall i get 0 I would realy appreciate if someone could point me in the right direction and/or help me to solve my problem. (Full code is also attached) With this code i create an entity: Code:
public entcreate()Code:
public del_station(id)As you see 2 of them return their ID (on the wall behind the Terror-spawn on dust2) and from 1 entity i get the ID 0 (on a different wall...) : Quote:
greetz regalis And here is the full code: |
Re: Weird Problem with get_user_aiming()
Does nobody have an idea where the problem is?
I made the models by myself..is this maybe the cause? ANY ideas/suggestions/advices/helps/hints/thoughts are appreciated!..0o Please help me :( |
Re: Weird Problem with get_user_aiming()
1 Attachment(s)
It might be the size problem. Picture shows where the entity is actually located, I also could not get a lock on the entity by aiming at it.
You can use this tool, it is very helpful with entities. |
Re: Weird Problem with get_user_aiming()
Quote:
I have found the problem with this nice SHPtools you suggested. (I had it already but never had time to test its features *lol*) The following is happen: If the entity which is located far under the model is in the ground i can't get its ID with get_user_aiming().. I would like to thank you very much for pointing this out! greetz regalis |
| All times are GMT -4. The time now is 10:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.