Posts: 3,716
Threads: 196
Joined: Aug 2006
can someone explain the steps to trigger an event on motion end? please.
it's like my brain doesn't work at all today.
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech
Posts: 40,483
Threads: 491
Joined: Aug 2002
I assume you want a specific motion sensor, right? If so, you'd set up a triggered event and set the filter to "Is Motion Event For", which lets you select a particular motion field to watch for. That'll trigger your event when there's a motion event on that field.
Within the event, call
TrigEvent::GetMotionInfo()
That will give you back the motion state being reported. It also gives you back info about the specific motion sensor but you can just ignore those values since you know you already triggered on the desired field. The first variable you pass, to be filled in the state, will come back with a value of 'start' or 'end', without the quotes of course, so just check to see if it's equal to 'end'. If so, do your thing.
If you want to respond to any end motion, the use the 'Is Motion End' filter. That will trigger your event on any end of motion trigger. Internally, you can call the same action command as above, and this time look at the motion sensor name returned.
If you want to see the type of info in the motion trigger (which is what GetMotionInfo returns), open the CQC Command Prompt and run CQCEventDump and make a motion event occur, then wait for it to time out and send the end, and you'll see what's being sent and therefore what you'll get from the motion info query above.
Dean Roddey
Explorans limites defectum
Posts: 7,970
Threads: 554
Joined: Mar 2005
fyi I should be home around 4:30pm PST after the dr appt, the Tivo was delivered today so setup on that is the only huge need, I can do a google hangout to walk you through mine. Assuming you're not drunk from sitting home playing Halo all day.
Posts: 3,716
Threads: 196
Joined: Aug 2006
thanks Dean. i was hung up with the 'Is Motion End'.
i spent like 3 hours getting my ass handed to me by what i assume were obnoxious 12 year olds in Halo. im an embarrassment to the original video game generation, and need to go sit in a corner.
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech
Posts: 7,970
Threads: 554
Joined: Mar 2005
jkmonroe Wrote:thanks Dean. i was hung up with the 'Is Motion End'.
i spent like 3 hours getting my ass handed to me by what i assume were obnoxious 12 year olds in Halo. im an embarrassment to the original video game generation, and need to go sit in a corner.
Does Halo have a "only play friends" mode? You can kick my ass later to feel better about yourself. Took me forever to realize you can flip vertical controls, I kept hitting the ground on headshots.
Posts: 3,716
Threads: 196
Joined: Aug 2006
i mean, we could do a 1v1 in a custom game.
would probably be better to roll 2v2 against some randoms and see how that goes.
i won't be able to play until after the fam goes to bed, so like 9:30EST if you want to roll a few games later tonight.
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech