Chicken spawner
1 Attachment(s)
Hi!
I am making an chicken spawner, you can use it to spawn chickens (like those on cs_italy) where you aim. But i am having a strange bug. When i try to spawn a chicken, i instantly gets teleported to the maps 0, 0, 0 origin, and the chicken too. Otherwise, its working just as intended. If anyone could help out, it would be appreciated. Source: |
Re: Chicken spawner
Line 32 you have...
Code:
It should be... Code:
Capital F on Float. I think that should fix it? |
Re: Chicken spawner
It was AMXX-Studio that told it should be 'float' and not 'Float'
Damnit. Well, i tryed with 'Float' and the var turned into an float. But it still teleported me to the 0, 0, 0 origin of the map :S Thanks for helping out, anyway. |
Re: Chicken spawner
float is a function.. thats why amx studio tells you that
|
Re: Chicken spawner
Rukia made a good tutorial on NPCs, I think this would fit the bill.
http://forums.alliedmods.net/showthread.php?t=11756 |
Re: Chicken spawner
Quote:
|
Re: Chicken spawner
Try to use get_user_info to get the origin of the player.
|
Re: Chicken spawner
Quote:
pev(ent, pev_origin, fRetOrigin) |
Re: Chicken spawner
Ignore the people above me, they don't know where they are talking about.
Line 33: Code:
I don't know why you want to set your origin to your current origin, it makes no sense. IF you want to set the origin of a player, use set_user_origin, not entity_set_vector! Quote:
|
Re: Chicken spawner
Quote:
|
All times are GMT -4. The time now is 18:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.