FSIC Messageboard
  Tech Talk
  DOF Activate on Detach?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   DOF Activate on Detach?
Aladar
Pilot
posted 12-28- 05:08 PM     Click Here to See the Profile for Aladar   Click Here to Email Aladar     Edit/Delete Message   Reply w/Quote
Can I make a DOF activate when a piece breaks off? Thanks alot.

------------------
SUICIDE SLED!! Barracuda-%90

"Wie ein floh aber Oh-Ho!"

"Don't move, if we scatter, he'll pick us off! Stand Together!"~~Aladar
Visit my site!

IP: Logged

Raider
Pilot
posted 12-28- 05:20 PM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
Yes,

onDetach
obExec
Name 'Parent object
Func 'DofActivate

On the properties for the Parent object
obFunc
DofActivate
cmdNameOfCommand

Let me know if you need more detail.

IP: Logged

Aladar
Pilot
posted 12-28- 06:53 PM     Click Here to See the Profile for Aladar   Click Here to Email Aladar     Edit/Delete Message   Reply w/Quote
Raider, I follow ya, but I need it to activate a DOF that doesn't have a cmd.

IP: Logged

ArgonV
Pilot
posted 12-28- 08:22 PM     Click Here to See the Profile for ArgonV   Click Here to Email ArgonV     Edit/Delete Message   Reply w/Quote
The cmd doesnt have to be specified in the keyboard.inp file. It will still work.

IP: Logged

Aladar
Pilot
posted 12-28- 09:10 PM     Click Here to See the Profile for Aladar   Click Here to Email Aladar     Edit/Delete Message   Reply w/Quote
So your saying I can put in cmdYoudBetterWorkYouSOB and it will work?

IP: Logged

Raider
Pilot
posted 12-28- 10:26 PM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
LOL, that might be a little long, but yes ArgonV is right. It does not have to be in the keyboard.inp

IP: Logged

jedi
Pilot
posted 12-29- 11:22 AM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Hehe yes this is a bit confusing at first, but the cmd you give to the parent object as a function does not have to actually exist anywhere else. You can give the main object an obfunc "EatPastramiSandwich," and 'cmdEatPastramiSandwich and then make 'cmdEatPastramiSandwich the command to activate a DOF somewhere. Then when your object detaches, you make that action activate the EatPastramiSandwich function of the main object, and the DOF will run. cmdEatPastramiSandwich doesn't even have to be a key command in the keyboard.inp file, or exist anywhere except as a function and DOF command.

------------------
--jedi--

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c