Closed CookStar closed 2 years ago
Classname of a certain weapons cannot be obtained by normal way.
https://developer.valvesoftware.com/wiki/Weapon_cz75a
weapon_cz75a is a point entity available in Counter-Strike: Global Offensive . Warning: In the I/O system and in VScript, this entity is targeted with the classname weapon_p250 instead!
Code:
# Weapons from weapons.entity import Weapon weapon_entity = Weapon.create("weapon_cz75a") print("Weapon ClassName: ", weapon_entity.weapon_name) print("Edict ClassName: ", weapon_entity.edict.classname)
Output:
Weapon ClassName: weapon_cz75a Edict ClassName: weapon_p250
Classname of a certain weapons cannot be obtained by normal way.
https://developer.valvesoftware.com/wiki/Weapon_cz75a
Code:
Output: