Random Weapon Spawn
#1

I have a DM server and I want to have a minigun spawn at random places.. I made 3 test spots and the minigun appears there, when I pick it up it dissapears and spawns in the SAME place, I want it to spawn at a randon place the next time..
here is the code under OnGameModeInt()

Код:
 switch(random(3))
	{
	  case 0:{
      AddStaticPickup(362, 2, -309.0875,850.5108,11.0620);
    }
   	case 1:{
      AddStaticPickup(362, 2, -302.3301,813.5313,14.6658);
    }
    case 2:{
      AddStaticPickup(362, 2, -264.7070,798.2562,16.5643);
    }
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)