Quote:
|
Originally Posted by TB3
with() seems to be getting an incorrect npc and setting its strings thats the only explanation that seems fit.
|
The perfect implementation would include getting npcscount before adding the new npc, because the level might not be in memory and adding the npc might swap in some new local npcs (accessing npcscount is one of the acitivities which is loading the level into memory). Can you try this :
NPC Code:
oldnpcscount = npcscount;
putnpc2 ...
if (npcscount>oldnpcscount) with (npcs[oldnpcsount]) { ... }
I have never had problems with the npcs[npcscount-1] yet though, so it must be a special case