![]() |
punching and projectiles
Im runnin GS2 on my server and everybody has this weapon, its just that the projectile part isnt working...
NPC Code: PS: The player.chat part is only to check to see if the script works... |
I think you're a bit confused about how some things work.
First off, you don't need to use an onTimeout like that. Try using replaceAni("sword", "punch") in say onCreated of that weapon. Second, HTML Code:
triggerAction(player.x+1.5+vecx(playerdir)*2,player.y+2+vecy(playerdir)*2, "punch", "player.account", "player.guild"); |
I guess it would need to be onActionPunch. Better would be to trigger the serverside part of the weapon (triggerserver("weapon",weaponname,"punch")) and check for players near, to make the hitpoint system more secure.
|
im making a custom hp system, replace ani will just replace the sword with something else and it will use graals heart system
|
but anyways its fixed now...thank you
|
| All times are GMT +2. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.