Entity origin
Hello,
Is there a way to change the start position of an map entity? For example: xPaw made plugin so U cant move map weapos / grenades with scooter. Without U could move them to another spot, and they will always spawn there. I try'd: pev_origin pev_oldorigin pev_basevelocity ... Nothing rlly worked. Thx anyway! |
Re: Entity origin
What are you trying to do?
|
Re: Entity origin
Are you saying that you want eg. If I pick up a weapon in fy_iceworld run across the map, and then either die and / or drop my weapon, the round ends, and then it's supposed to spawn where it landed on the next round?
|
Re: Entity origin
Yes.
|
Re: Entity origin
I believe the only way is that your going to have to loop through all weapon entities on round end and save their origin, and then set them on the next round.
|
Re: Entity origin
pev_origin should work for point entities.
|
Re: Entity origin
Quote:
They get automatic putted back to old origin on roundend? |
Re: Entity origin
I've tested now:
For setting the origin, use EngFunc_SetOrigin, else only the entity models will be moved. EDIT: Actually, you don't need to set oldorigin (I even think it's not used for anything). |
Re: Entity origin
Ground weapons on fy_ maps are "armoury_entity" entities, when you touch such entities, you are being given a real weapon, but armoury entity stay at the same place and become invisible and untouchable.
|
| All times are GMT -4. The time now is 00:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.