OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: SilentHunter_764 on 29 Mar 2005, 09:45:01

Title: Placing a certain object
Post by: SilentHunter_764 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
Title: Re:Placing a certain object
Post by: RujiK 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.
Title: Re:Placing a certain object
Post by: SilentHunter_764 on 30 Mar 2005, 10:13:48
lol

Thanks for the help