Createobject
#1

Is there a way for setting respawn times on objects? Like for exampl i put a glass in side the interior of San fierror pd and it gets shot and gets destoyed, How would i make it so it respawns again and How would i go about scirpting it in?
Reply
#2

Just do this

pawn Код:
new Object[2];

public OnGameModeInit()
{
  Object[0] = CreateObject(....);
  Object[1] = CreateObject(....);
  SetTimer("ReloadObjects", 10000, true);
  //And so on
  return 1;
}

forward ReloadObjects();
public ReloadObjects()
{
   DestroyObject(Object[0]);
   Object[0] = CreateObject(....);
   DestroyObject(Object[0]);
   Object[1] = CreateObject(....);
   return 1;
}
Or get a object streamer.
Reply
#3

Quote:
Originally Posted by [HiC
TheKiller ]
Just do this

pawn Код:
new Object[2];

public OnGameModeInit()
{
  Object[0] = CreateObject(....);
  Object[1] = CreateObject(....);
  SetTimer("ReloadObjects", 10000, true);
  //And so on
  return 1;
}

forward ReloadObjects();
public ReloadObjects()
{
  DestroyObject(Object[0]);
  Object[0] = CreateObject(....);
  DestroyObject(Object[0]);
  Object[1] = CreateObject(....);
  return 1;
}
Or get a object streamer.
Thank you for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)