Hi!
why does it say crash in mace2_pickup, when i use ent_remove(me) in this action?:
----------------------------------------------------------------
action mace2_pickup()
{
my = me;
while(1)
{
if(vec_dist(my.x, player.x) < 50 && player.HEALTH > 0)
{
if(key_e && player.weapon_on == 0)
{
ent_create("mace2.mdl", vector(player.x, player.y, player.z), mace2_equiped);
player.weapon_on = 1;
ent_remove(me);
}
}
wait(1);
}
}
-------------------------------------------------------------
thanks!!!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves:
http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!