Home   Help Search Login Register  

Author Topic: Placing a certain object  (Read 1163 times)

0 Members and 1 Guest are viewing this topic.

SilentHunter_764

  • Guest
Placing a certain object
« on: 29 Mar 2005, 09:45:01 »
Hullo all! Been a while since i've been on OFPEC.

Heres my inquiery - I know that it is possible, but I was wondering if anyone knows where i could find/make a script that would allow a certain player (officer1) to be able to place 1 Medical tent, and then take it down. When it has been built however, you cant have 2 at the same time ie Making a tent then taking it down and moving on and putting it somewhere else?

Cheers, Thanks in advance
LooseKannon
« Last Edit: 29 Mar 2005, 11:15:51 by LooseKannon »

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Placing a certain object
« Reply #1 on: 29 Mar 2005, 18:59:31 »
Tent = Homie_G addaction ["Pop up that tent!","Tent.sqs"]


Tent.sqs
----------------------------------
Code: [Select]
Tent_of_Doom setpos getpos Homie_G
Homie_G removeaction Tent
Removetent = Tent_of_Doom addaction ["Rip it down!","Kill.sqs"]
Kill.sqs
----------------------------------
Code: [Select]
deletevehicle Tent_of_Doom
exit

You may want to change the pos of the tent as right now it will just go right on Homie_G's head.
I like your approach, lets see your departure.
Download the New Flashlight Script!

SilentHunter_764

  • Guest
Re:Placing a certain object
« Reply #2 on: 30 Mar 2005, 10:13:48 »
lol

Thanks for the help