Home   Help Search Login Register  

Author Topic: Question...  (Read 1470 times)

0 Members and 1 Guest are viewing this topic.

Waterman

  • Guest
Question...
« on: 08 Dec 2002, 16:57:32 »
I have seen a few missions where you can place objects during a mission, via the action menu.  I was just wanting to know how that is done.  I presume it's by camcraeting it, but I havent used this command before. :P

I know there's a mission in the CWC campaign that is like that, and though it was a realy good idea.

Cheers,
Waterman. :)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #1 on: 08 Dec 2002, 17:11:22 »
its not in CWC its in red hammer campaign  :P  ;D

nd yes it uses camcreate - like dat

"objectname" camcreate position

(or getpos object) da objectnames should bin da Official comref if im not wrong

nything else ?

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Waterman

  • Guest
Re:Question...
« Reply #2 on: 08 Dec 2002, 17:19:06 »
Thanks! I take it the official command Ref is available on this site...

I go and check...
Waterman. :)

Waterman

  • Guest
Re:Question...
« Reply #3 on: 09 Dec 2002, 21:53:51 »
See when you say: "objectname" camcreate postion,

Do I replace the word position with the coordinates.  Also, do you just use the name of the object in the editor?
i.e. "Wire" camcreate [x,z,y]? ???

And also about adding the option via the action menu.  How would I go about that? ???

Waterman. :)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #4 on: 09 Dec 2002, 22:06:51 »
da objectname in da ME is not alwayz da same as da objectname in da config.bin so u have 2 check in da comref  ;D

but u git da syntaz right (u can also use
Code: [Select]
"wire" camcreate getpos objectname
2 add da action 2 da action menu use (in da init of da player)

Code: [Select]
buildwire = this addaction ["Build Wire","buildwire.sqs"]
nd make da next script

Code: [Select]
"wire" camcreate getpos (_this select 0)
exit

it should do (im not sure if u have 2 name camcreted objects, nd im not sire if wire is da name u need

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Waterman

  • Guest
Re:Question...
« Reply #5 on: 09 Dec 2002, 23:49:24 »
Thanks LCD. :)

I'll try that out.  So you say the names of the objects are in the command reference then? ???
I looked and I didn't see any, just different commands.

Waterman.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #6 on: 10 Dec 2002, 07:12:37 »
download da official command referance - it have da names i know cuz i have it  ;)  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Waterman

  • Guest
Re:Question...
« Reply #7 on: 11 Dec 2002, 18:46:12 »
It's working now LCD. :D

But...
Firstly it's half sunk into the ground.  What should I do...?
Do I add:
_this setpos (getpos this select 0, getpos this select 1, 0]? ???

Is it also possible to make it so that you can add more than 1, and perhaps have a counter telling you how many you have left? ???

Cheers,
Waterman. :)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #8 on: 11 Dec 2002, 18:55:33 »
make da code like dat

Code: [Select]
_pos = getpos (_this select 0)
"wire" camcreate[_pos select 0,_pos select 1,0]
wirecount = wirecount-1
hint format ["%1 wires left",wirecount]
? wirecount < 1 : (_this select 0) removeaction (_this select 2)
exit

u should put da num of wires u want in da init.sqs file like dat

Code: [Select]
wirecount=20
wil give him 20 wires ;D

should b alright

LCD OUT

"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Waterman

  • Guest
Re:Question...
« Reply #9 on: 11 Dec 2002, 19:00:35 »
Thanks again! :D I'll try that out...

Waterman. :)

Waterman

  • Guest
Re:Question...
« Reply #10 on: 12 Dec 2002, 00:26:02 »
All is well LCD, but there is one last small problem. ;D

The "Azimut" or whatever it's called isn't working properly.  Instead of placing it in the direction your facing, it places it so that it is always facing East - West, long sided.

It's not essential but would make it more professional. ;)

Waterman. :)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #11 on: 12 Dec 2002, 01:49:23 »
right :D

i dont garuntee nything its late nd everythin but try dis (if not i wil give u beter way after u test dis)

Code: [Select]
_pos = getpos (_this select 0)
_wire = "wire" camcreate[_pos select 0,_pos select 1,0]
_wire setdir (getdir (_this select 0))
wirecount = wirecount-1
hint format ["%1 wires left",wirecount]
? wirecount < 1 : (_this select 0) removeaction (_this select 2)
exit

im not sure nd i cant think bout it in hour like dat ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Question...
« Reply #12 on: 12 Dec 2002, 07:08:24 »
Hey guys,

Try:

_wire = "wire" camcreate [(_pos select 0) + sin (getdir (_this select 0)) * 2, (_pos select 1) + cos (getdir (_this select 0)) * 2, 0]

That will put your wire 2m in front of the unit, no matter which direction it is facing ;)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Question...
« Reply #13 on: 12 Dec 2002, 14:56:30 »
tanks sui  ;D

realy good idea ;D

didnt thyink bout it ;)

so waterman try it nd tell if it works

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Waterman

  • Guest
Re:Question...
« Reply #14 on: 12 Dec 2002, 18:24:00 »
Thanks LSD. ;) and Sui.

LCD's worked but Sui's didn't but thanks anyway. :P ;D

Waterman. :)