it seems that in HL2DM I am not able to change the model of a weapon I just spawned. I've tried it with this code:
Syntax: Select all
from players.entity import Player
from events import Event
from engines.precache import Model
from entities.entity import Entity
@Event('player_say')
def say(ev):
player = Player.from_userid(ev['userid'])
ent = Entity.create("weapon_crossbow")
ent.model = Model("models/crow.mdl")
ent.origin = player.view_coordinates
ent.spawn()
I also tried to first spawn it and then set the model which had the same result.
I'd be happy about any ideas :)