So i have 5 coins, when my enimy dies the coins are placed right beside him so the player can then pick them up. the coins do show up right next to him after he dies but its all the coins not just one.
I do have an array set up and also this code, what am I doing wrong here. I want one coin out of the five to be placed after death so the next coin can be next to the second enimys death.
if playobjectdeath2=1
playdeath2=playdeath2+1
endif
if playdeath2=50
keepenimy6dead=1
rem show coins
px2# = object position x(6)
y2# = object position y(6)
pz2# = object position z(6)
for coins1=2000 to 2005
if object exist (coins1)
show object coins1
position object coins1,px2#,y2#+10,pz2#
endif
next coins1
endif
if keepenimy6dead=1
set object frame 6,226
endif
my signature keeps being erased by a mod So this is my new signature.