Spawned weapons do not function correctly.
Posted: Tue May 16, 2017 2:27 pm
I have noticed in the recent update that spawning a weapon into the world will cause some crazy behaviour... All weapons sound like deagle shots, and they always have max ammo and no extended clips. They also are classed as knives according to the overlays
This has confused me to every extent xD
Test code below:
Picture from the retarded "Knife"
This has confused me to every extent xD
Test code below:
Syntax: Select all
from commands.say import SayCommand
from entities.entity import Entity
from players.entity import Player
@SayCommand('test')
def _on_say(command, index, team):
player = Player(index)
weapon = Entity.create('weapon_ak47')
weapon.origin = player.view_coordinates
weapon.spawn()
Picture from the retarded "Knife"