Home   Help Search Login Register  

Author Topic: I want to make sure my commands are right?  (Read 823 times)

0 Members and 1 Guest are viewing this topic.

Iwesshome

  • Guest
I want to make sure my commands are right?
« on: 10 Apr 2003, 20:54:45 »
Hello,

I want to make sure my commands are all correct...

Solider = grp1

Note:

I want my soldiers to go to an area and hold, set up a perimeter for a period of time, then move on

Example:

Move waypoint to location A (Trigger activated) synced to Hold waypoint (Initialization field: grp1 SetDir 90; grp1 switchMove "FXInKneel") Move waypoint to location B

- Want the character to look at 90 and be kneeling
- Trigger should have countdown (2 min. worth) 120/120/120?
- Trigger will finish countdown and group will go to next waypoint?

Does this look right?

IW  ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I want to make sure my commands are right?
« Reply #1 on: 10 Apr 2003, 22:02:25 »
No.

Hold waypoints are never completed, so if another group has a waypoint synched with a hold waypoint, they will never progress past that WP.    The only way you can get past a hold WP is to use a switch trigger.

The test is always to, well, test it and see if things work out as you hoped.  

Quote
I want my soldiers to go to an area and hold, set up a perimeter for a period of time, then move on

This sounds like a job for

Captain Switch Trigger

But if you just want somebody to stop and do something at a waypoint, then just use move with a bunch of commands and timeout, and it should work fine.    (As long as its an AI group and nothing to do with the player)
Plenty of reviewed ArmA missions for you to play

Iwesshome

  • Guest
Re:I want to make sure my commands are right?
« Reply #2 on: 11 Apr 2003, 14:23:20 »
Ok,

I eliminated the hold waypoint and used the timeout in one of my move waypoints like suggested. Now I have two problems still....

1. I was able to have the guys do their animation like they were told to but I think it is the wrong animation (grp1 switchMove "FXInKneel")

- Looks like my guys are taking a crap... Looking for my guys to have guns drawn on one knee

2. Also grp1 SetDir 90 is not working... they were never looking that direction only the direction of their first move waypoint

- Is this because they are stuck doing an animation? Just thought of that...

 ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I want to make sure my commands are right?
« Reply #3 on: 11 Apr 2003, 14:30:58 »
I would bet, though I don't know, that setDir and animations don't get along.    Try setDir first, to get them facing the right way, then do the animation.

The other thing about setDir is that it happens in one instant in time.   As soon as the AI unit has done it, it will go on to do whatever is next.   You might need a doStop command to make them keep still before going on to the animation.

As to the correct animation, I have no idea.    Hopefully somebody will happen past and give you a tip, but failing that all you can do is test lots until you find the one you want.   There is a complete list (as far as I know) in the Ed Depot, under Pending.  
Plenty of reviewed ArmA missions for you to play

Iwesshome

  • Guest
Re:I want to make sure my commands are right?
« Reply #4 on: 11 Apr 2003, 15:20:11 »
Ok.... can you take a look at this?

Code: [Select]
; My first script

_groupname = _this select 0
_numberofunits = _this select 1

;[Grp1,2] exec "animation.sqs"

#start
?!(alive _groupname): exit
_groupname SetDir 90
~2
_groupname switchMove "FXInKneel"
~120
1. I know the animation is not correct - till I figure out which one it is there for effect

IW
« Last Edit: 11 Apr 2003, 15:21:01 by IW »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I want to make sure my commands are right?
« Reply #5 on: 11 Apr 2003, 15:56:00 »
Does it work?

If not, what happens?   What goes wrong?

You should put an exit at the end, for good order's sake.   Nice to see you have started scripting with the excellent habit of quoting an example of how to call the script.
Plenty of reviewed ArmA missions for you to play

Iwesshome

  • Guest
Re:I want to make sure my commands are right?
« Reply #6 on: 11 Apr 2003, 16:22:53 »
Macguba,

I can't try it for another 8 hours  :-\.... I am at work  ;D

Thanks again for yout input on the matter and I'll post as soon as I have a result on this subject.

Code: [Select]
;My first script

_groupname = _this select 0
_numberofunits = _this select 1

;[Grp1,2] exec "animation.sqs"

#start
?!(alive _groupname): exit
_groupname SetDir 90
~2
_groupname switchMove "FXInKneel"
~120
exit
IW


Iwesshome

  • Guest
Re:I want to make sure my commands are right?
« Reply #7 on: 12 Apr 2003, 20:24:18 »
Nope did not work... here is the script I used

Code: [Select]
;my first script

_groupname = _this select 0
_numberofunits = _this select 1

;[grp1,2] exec "test.sqs"

#start
?!(alive _groupname): exit
_groupname switchmove "effectstandcrouch"
~120
exit
I had three move waypoints and a trigger over waypoint number two to activate script sync with waypoint three...   ???

They ignored the script and moved to waypoint three,

I am confused here  :-\

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I want to make sure my commands are right?
« Reply #8 on: 13 Apr 2003, 10:19:20 »
OK, well lets break the problem down.    Make a little test mission and try the script - lets get it working.    Add a hint line so that you know the script is being called correctly.

In the main mission, delete the script call command for now and replace it with a hint.     Then work the waypoints and triggers till it works.

Once you have got both bits working put them back together.
Plenty of reviewed ArmA missions for you to play