[Ohrrpgce] npc copy count

2012-05-22 Thread Adam Perry
The documentation for this really needs to change. The description says that it returns the number of copies of an NPC, but the example script shows that it returns the number of copies minus one, which I believe is the correct behavior. I can never remember, though, and every time I look it up, I

Re: [Ohrrpgce] npc copy count

2012-05-22 Thread Ralph Versteegen
On 23 May 2012 05:27, Adam Perry arpe...@gmail.com wrote: The documentation for this really needs to change. The description says that it returns the number of copies of an NPC, but the example script shows that it returns the number of copies minus one, No it doesn't, the example is wrong.

Re: [Ohrrpgce] npc copy count

2012-05-22 Thread Mike Caron
On Tue, May 22, 2012 at 1:39 PM, Ralph Versteegen teeem...@gmail.com wrote: On 23 May 2012 05:27, Adam Perry arpe...@gmail.com wrote: The documentation for this really needs to change. The description says that it returns the number of copies of an NPC, but the example script shows that it

Re: [Ohrrpgce] npc copy count

2012-05-22 Thread Ralph Versteegen
On 23 May 2012 05:52, Mike Caron caron.m...@gmail.com wrote: On Tue, May 22, 2012 at 1:39 PM, Ralph Versteegen teeem...@gmail.com wrote: On 23 May 2012 05:27, Adam Perry arpe...@gmail.com wrote: The documentation for this really needs to change. The description says that it returns the number

Re: [Ohrrpgce] npc copy count

2012-05-22 Thread James Paige
On Wed, May 23, 2012 at 06:04:04AM +1200, Ralph Versteegen wrote: On 23 May 2012 05:52, Mike Caron caron.m...@gmail.com wrote: On Tue, May 22, 2012 at 1:39 PM, Ralph Versteegen teeem...@gmail.com wrote: On 23 May 2012 05:27, Adam Perry arpe...@gmail.com wrote: The documentation for this

[Ohrrpgce] npc copy count

2007-09-01 Thread Adam Perry
Is it appropriate to decrement the counter if you destroy an NPC mid-loop? For example: script,do shots( variable(ctr) variable(ref) variable(facing) variable(destroyed) # player bullets for(ctr,0,npccopycount(npc:projectile)--1) do( destroyed:=false ref:=npc