Home   Help Search Login Register  

Author Topic: Pitch a tent  (Read 627 times)

0 Members and 1 Guest are viewing this topic.

Cpl. Vagabond

  • Guest
Pitch a tent
« on: 30 Mar 2003, 22:08:18 »
can someone make me a script so that when you execute the action "Pitch Tent" the ACR small camp (tent) will appear instantly or from below the ground, while player does the medic crouch (giving aid) position and then so the player can go upto the tent and take it down.

it would also be helpful if someone can tell me howto remove an action

addAction ["Pitch Tent", "pitch.sqs"]   - add pitch tent action
removeAction "pitch tent"     - pitch tent action removed
addAction ["Packup Tent", "packup.sqs"]     - add remove tent action
removeAction "packup tent"
loop

this is what i'd need for the actions thingy but i don't know howto do it
do u guys understand what i mean?....cause i don't

Thx in advance
Cpl. Vagabond

fragsta

  • Guest
Re:Pitch a tent
« Reply #1 on: 30 Mar 2003, 22:20:01 »
Thats a really good idea actually. Duz ne1 kno how 2 make something appear?

Cpl. Vagabond

  • Guest
Re:Pitch a tent
« Reply #2 on: 30 Mar 2003, 22:24:55 »
of course it's a good idea, mainly because there is no such thing as a bad idea, however i'd like to see someone make some teletubbies for this game.
he he he he and then someone make teletubbie land (it wud b simple) and then......oppps i just kinda went on abit.

but teletubbies would be a wicked addon (stick a hit counter on it and watch the number rise)

Cpl. Vagabond

  • Guest
Re:Pitch a tent
« Reply #3 on: 31 Mar 2003, 14:22:08 »
And i'd only like the to be made once (i might have said that already) please will anyone help me make this.

Cpl. Vagabond

  • Guest
Re:Pitch a tent
« Reply #4 on: 01 Apr 2003, 18:55:49 »
i know it's possible to make a guy spawn but is there a way to transfer that to work with objects then you could have engineers (or anyone else) build a base (sandbags, medi-tent, etc...)

can someone at least take a look at this

red devil

  • Guest
Re:Pitch a tent
« Reply #5 on: 05 Apr 2003, 11:46:11 »
This is not 2 difficult it is the same as mking a movable mg, have a think an if u stil cant do it pm me and ill be happy to help ya.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Pitch a tent
« Reply #6 on: 08 Apr 2003, 08:55:11 »
To create the tent, use the camcreate command. I don't know what the name OFP uses for a tent, but you can find out by saving a map with only a tent placed. Open up the mission.sqm file, and find where it says "vehicle = XXX". That name is the name of the tent. To create one, you simply say:

"XXX" camcreate getpos player

Or some other location. You could also pre-place a tent, and use the "setpos" command to move it next to the player, then setpos it somewhere in the ocean when it is done.

When adding actions, you need to use a variable to keep track of how many actions you have added. Increase this after each action you add. Then you use this number when you remove the action.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!