Home   Help Search Login Register  

Author Topic: How do I ....  (Read 652 times)

0 Members and 1 Guest are viewing this topic.

Bricktop

  • Guest
How do I ....
« on: 28 Dec 2003, 09:15:24 »
If I want a units condition of Prescence to be False and then via trigger true at some point during a mission ... how do I achieve this ... I've searched but can't find a solution.

Any help appreciated.

Seasons Greetings

Bricktop


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I ....
« Reply #1 on: 28 Dec 2003, 12:46:28 »
u mean u want unit 2 apear somwere in midmission ?

dere r som wayz of achivin dat

1) use setpos

put game logic (or nythin else) were u want da unit 2 apear (ill call it GL 4 dis example)

wen u want it do (thro trig or script)

unitname setpos getpos GL

2) createunit

dis is command 4 da pros ;)

put game logic (or nythin else) were u want da unit 2 apear (ill call it GL 4 dis example)

ull need a group (put unit nd name da group* in its init)

in da init of da sameunit also put... deletevehicle this

now wen u want use da createunite command (thro script or trig)

"soldierclass" creatunie [getpos GL,groupname]

:cheers:

hop i was right bout ur intentions ;) :P

btw da cond of pres is used only in da start o mision

LCD OUT
-------------------------------------------------
* how 2 name group

in 1 of dagroup memebers init put

name=group this

da name can b nythin u want its ur group ;)
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Bricktop

  • Guest
Re:How do I ....
« Reply #2 on: 28 Dec 2003, 23:18:29 »
K, I understand what you are saying ... but when I try to do that it simply says "Expected Boolean or something". By unitname I am assuming you mean the name of the unit as per Flashpoint? I was wondering if you could elaborate a little more.

Thanks for your help

Bricktop


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I ....
« Reply #3 on: 28 Dec 2003, 23:32:35 »
unitname is da name u put in da name field wen u create da unit (in da unit edit menu)

if its stil hard ill put example mision 4 ya ;D ;)

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

Offline rhysduk

  • Former Staff
  • ****
Re:How do I ....
« Reply #4 on: 28 Dec 2003, 23:36:12 »
Quote
By unitname I am assuming you mean the name of the unit as per Flashpoint?

Wha do u exactly mean by this ?

i guess u know when u place a unit and a dialogue box pops up ?? there is a feild called "NAME" in it .. pop a name for the unit in there...

this is the name that "unitname" needs..

Hope this is helpful

Rhys :)
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Bricktop

  • Guest
Re:How do I ....
« Reply #5 on: 28 Dec 2003, 23:36:32 »
Yeah, if you could make an example and E-mail it to me at shadwell_gyre@hotmail.com I would appreciate it. When I see it I am sure it will all make sense.


Thanks for your help.

Brick

Bricktop

  • Guest
Re:How do I ....
« Reply #6 on: 28 Dec 2003, 23:38:41 »
Rhys,

Yeah I understand what he is saying ... what I'm not sure about is where the unit is supposed to come from. Do I add it and put its precense as false, or is it added via the INIT line? Thats what Im not understanding.

Thanks

Brick


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do I ....
« Reply #7 on: 28 Dec 2003, 23:48:37 »
in da 1st way ?

just put da unit somwere far away (som island or place dat no1 gets 2 - not sea so it stayz alive) nd name it

4 sec way da

"soldierclass"

means da classname of da unit u can get it thro da typeof command (in triger or somin - type typeof unitname)

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

Bricktop

  • Guest
Re:How do I ....
« Reply #8 on: 29 Dec 2003, 03:26:42 »
Maybe its easier if I just explain what I want to do.

I have the CoC Torpedo add on which has a particularly good Nuke Effect in it.

I want to make that Torpedo (The Shkval Nuke) detonate at a given time on land.

Now I can accomplish this by using a Helo or plane but I dont want that. I want the Nuke to go off when triggered.

Problem : When the Nuke is on ANY land, it detonates automatically. I do not know how to "Disarm" it (Change its state), so I thought the next best thing would be to bring it in at a certain point in the mission. Unfortunately putting it on an island somewhere etc will not stop it from detonating (Using getpos and setpos as you suggested).

Maybe with the specifics you can see what I am trying to accomplish.

Thanks

Brick


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How do I ....
« Reply #9 on: 30 Dec 2003, 01:13:41 »
You might be able to camCreate it in the air and use a loop to keep it in the air till it is needed.

One thing I can tell you, the Condition of Presence field does not come into the solution to this problem.    That is only useful if you want something to happen/not happen at the start of the mission.     In this case you definitely want the nuke to be in the mission (whether it goes off or not is a different matter) so the CoP field is not appropriate.    

The answer probably lies with one or more of the commands camCreate, createUnit or setPos.
Plenty of reviewed ArmA missions for you to play

Bricktop

  • Guest
Re:How do I ....
« Reply #10 on: 30 Dec 2003, 04:43:30 »
Going to play around with it a bit and see what I can come up with!!

Thanks for help everyone

BT