|
Author
|
Topic: DOF Activate on Detach?
|
Aladar Pilot
|
posted 12-28- 05:08 PM
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
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
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
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
So your saying I can put in cmdYoudBetterWorkYouSOB and it will work?IP: Logged |
Raider Pilot
|
posted 12-28- 10:26 PM
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
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 |