Items spawned from the "Spawn Gem" script turn into "ghost items"

Started by Sweddy on Thu, 03/10/2016 - 18:03
Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Items spawned from the "Spawn Gem" script turn into "ghost items"
Thu, 03/10/2016 - 18:03

Whenever an item is spawned using the "spawn gem" script it can be picked up by the player but it will still be seen as if it's dropped on the ground.

Last seen on 22:02, 18. Oct 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
You must spawn it server-side
Thu, 03/10/2016 - 18:11

You must spawn it server-side only.
if(world.isRemote){.....

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You must spawn it server-side
Fri, 03/11/2016 - 10:14

And what the hell is that supposed to mean?

Last seen on 08:43, 12. Mar 2016
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You must spawn it server-side
Sat, 03/12/2016 - 08:36

@#1 Thank you!

Last seen on 08:43, 12. Mar 2016
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You must spawn it server-side
Sat, 03/12/2016 - 08:43

@#1.1 But it still doesn't work!

Last seen on 22:02, 18. Oct 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
RE:RE:You must spawn it server-side
Sat, 03/12/2016 - 08:55

@#1.1.1 Oh , i forgot "!" , it must beĀ if(!world.isRemote){....