![]() |
Problems with onwall
The following script is part of a weapon, that when fired pushes any player in front of the player who fired the weapon a certain distance depending on how far away they are. Everything is working fine except for detecting a wall and stopping the player from going through it when they are hit. In this script I made it so my chat would say "onwall" if its detecting that the player is onwall and "good" if they are not, but regardless of where I fire the weapon wall present or not my chat always shows as "onwall", which leads me to believe I had no idea how to use onwall, but I haven't been able to find anything to help me with it. So yeah, as always, any help/advice would be greatly appreciated.
PHP Code:
|
Ahhh- you're doing this on the serverside.
What you should do is trigger to the clientside and move the player clientside with a similar function- it will be lassy laggy on your server. HTML Code:
HTML Code:
//#CLIENTSIDE |
This line is incorrect:
Quote:
PHP Code:
|
oh yeah- returns object hehe
(fixed) rep++ @ chris |
Thanks to you both, this fixed problem for me.
|
| All times are GMT +2. The time now is 09:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.