Quote:
Originally Posted by Frankie
PHP Code:
with(putnpc2(this.x, this.y, "join newgas-" @ this.bombtype @ ";")) { this.time = random(30, 50); this.owner2 = thiso.gasowner; }
if I try to view what this.gasowner is outside of with(putnpc2()) it's fine. but when I try to set a different string to it so it will transfer to the other class, it's not working. how can I fix this ?
|
Personally, I think that way of doing it is ugly like hell. Try this, see if it works:
PHP Code:
temp.npc = putnpc2(this.x, this.y, "join(\"newgas-" @ this.bombtype @ "\");");
temp.npc.time = random(30, 50);
temp.npc.owner2 = this.gasowner;