[Help] Teleport and entity
Hi guys, I'm trying to make a plugin which can teleport victim to the attacker's back
For example, player A shoot player B => player B will teleport to the back of player A But I have a few trouble: - I don't know how to teleport the victim to the back of the attacker (I tried the attacker's origin but it would be stuck) - I want to create an entity with custom player models, when the victim has been teleported, the entity will appear at the old position of the victim and do the dead animation Any ideas will be much appreciated :D Thanks :D |
Re: [Help] Teleport and entity
PHP Code:
|
Re: [Help] Teleport and entity
1.you can use velocity by aim:
PHP Code:
2.You can take a look at some dias's npc plugins. I'm typing from my phone so there's might be some typos:) |
Re: [Help] Teleport and entity
@akcaliberg
Tried your code but it teleport me to somewhere, just like i have noclip :D @RateX 1. Negate Vel[0] to Vel[2] you mean Vel[0] = Vel[2] or Vel[2] = Vel[0] ? 2. Ya I checked at dias's oberon boss and it works fine :D but how to remove the entity at newround ? |
Re: [Help] Teleport and entity
Quote:
|
Re: [Help] Teleport and entity
Quote:
I'm not at home so I will send you the image later :D So do you have anything to avoid this ? |
Re: [Help] Teleport and entity
Quote:
PHP Code:
Quote:
PHP Code:
|
Re: [Help] Teleport and entity
Quote:
|
Re: [Help] Teleport and entity
Quote:
|
Re: [Help] Teleport and entity
@RateX
Thanks :D @akcaliberg how to check an entity touches anything? I'm new in these stuff :D |
| All times are GMT -4. The time now is 15:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.