mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Refactored WeaponObject
The scripting of weapons should be much, much easier now. See the included examples in DevService. Attributes such as attack speed and range are now being read/written to the actual items attributes.
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttackSpeed(1)
|
||||
object.setDamageType("kinetic")
|
||||
object.setMinDamage(50)
|
||||
object.setMaxDamage(100)
|
||||
object.setMaxRange(5)
|
||||
object.setWeaponType(6)
|
||||
|
||||
return
|
||||
Reference in New Issue
Block a user