get origin - set origin [SOLVED!]
Hi.
So,here's what i want. I want to revive a player and move to the spot where he died. It's posible with set origin ? |
Re: get origin - set origin
Yea, hook DeathMsg(), get player origin pev(id, pev_origin, vOrigin) ,then after you revive it set his origin engfunc(EngFunc_SetOrigin, id, vOrigin) .
|
Re: get origin - set origin
Ok, thanks.
|
Re: get origin - set origin
This should help you.
Code:
#include <amxmodx> |
Re: get origin - set origin
spawn(id) is a bad idea.
Read all posts from this snippet for more details : http://forums.alliedmods.net/showthread.php?t=76179 |
Re: get origin - set origin
@ PrEn1umz : nice but, why you are using engine ? fun module can be removed...
|
Re: get origin - set origin
i'm using fun because of spawn() function.
I know it's not the best method, like connorr saids, but you can change it easily |
Re: get origin - set origin
Quote:
|
| All times are GMT -4. The time now is 03:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.