Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Im a little confused on positiong objects per object

Author
Message
Daniel wright 2311
User Banned
Posted: 2nd May 2011 20:37
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.



my signature keeps being erased by a mod So this is my new signature.
DLS
22
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 2nd May 2011 22:36
try this:



if memory serves me correctly from what i know is this should take the x and z position of the dead npc and place the coins randomly in an area 10x10.

give it a try and see how it goes

PC spec: AMD Phemon II X4 940@ 3Ghz, 8Gb DDR2 Ram, 1x 60Gb SSD and 2x 500 gb HDD, GForce STX260 876Mb, Windows 7 64bit
Daniel wright 2311
User Banned
Posted: 2nd May 2011 23:23
@DLS

Yes i already did this and it works ok, thanks for the help.

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-11 13:58:30
Your offset time is: 2026-07-11 13:58:30