Home   Help Search Login Register  

Author Topic: Spawn Ammocrate?  (Read 997 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike34

  • Members
  • *
  • I'm a llama!
Spawn Ammocrate?
« on: 15 Jun 2008, 08:36:12 »
Hey guys, I would like some info on writing a script for a ammocrate to respawn over and over. I think this would be better then creating a hundred of them at the beginning of the game, That would probaly create too much unneccasary lag. At some point after the respawn the new ammocrate would be teleported to a usefull location to the player. Thanks Mike.

Offline Gcfungus

  • Members
  • *
Re: Spawn Ammocrate?
« Reply #1 on: 15 Jun 2008, 08:49:12 »
I did a test, but when I tried to get how dammaged an ammo box was, it wouldn't give me a value. Therefore, you could try using an action, radio trigger or looping timer to do it. Also, when you say a
Quote
usefull location to the player.
what do you mean by that?
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Mike34

  • Members
  • *
  • I'm a llama!
Re: Spawn Ammocrate?
« Reply #2 on: 15 Jun 2008, 14:57:04 »
I would like the ammocrate to "Spawn" at a specific location.

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
Re: Spawn Ammocrate?
« Reply #3 on: 03 Aug 2008, 19:32:35 »
lets say you want to spawn ammocratewest, and the player's name is "dude", then:

"Ammocratewest" createvehicle getpos dude;

Im not sure you must check the ammocrate you want specific name and write it instead of Ammocratewest.
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?