Giova_BLH 0 Posted February 20, 2007 i've made several searchs here and in ofpec, but allmost nobody talk about it. It is like if noone has never used it so... in my weapon i've wrote : useAction = true; useActionTitle = "My action %d"; But now, what to do? How to do the link between my weapon and a script? also how to give data (like C format) to my %d TimeBomb and PipeBomb doesn't help me because i found this link (weapon <=> scriptPath) nowhere. any help would be more than welcome. Share this post Link to post Share on other sites
Giova_BLH 0 Posted February 22, 2007 Making a little UP because i'm completly stopped by this problem My weapon is a PDA, i need that: condition : Player got the pda in its gears function : Add the action "open PDA" to the unit requested features : -if an other player is close of the unit, he cannot see the "open PDA" action (problem encounted with addaction) -When the player is using the PDA weapon, and firing, he have to don't fire , so he doesn't alert IAs. -when "Open PDA" is trigered, a script is launched to start an animation, display the dialog of the PDA (script allready made) -This weapon MUST be fully independant of any class of soldier. Tomorow, you create your own soldier class, you'll be able to use my PDA, without having to do anything, just yourunit addweapon "GiovaPDA", that's all. Share this post Link to post Share on other sites
Giova_BLH 0 Posted March 5, 2007 in case of, i do a last up Share this post Link to post Share on other sites
BraTTy 0 Posted March 7, 2007 A little confusing from your text. Too add a script to a weapon you can use "fired" eventhandler Share this post Link to post Share on other sites
Big Dawg KS 6 Posted March 7, 2007 i've made several searchs here and in ofpec, but allmost nobody talk about it. It is like if noone has never used it  so... in my weapon i've wrote : useAction = true; useActionTitle = "My action %d"; But now, what to do? How to do the link between my weapon and a script? also how to give data (like C format) to my %d TimeBomb and PipeBomb doesn't help me because i found this link (weapon <=> scriptPath) nowhere. any help would be more than welcome. You can't use this for your actions. You need to use addaction and scripts. These actions only work for satchel charge and mine simulations. Your weapon would have to be defined as a satchel charge or mine for these actions to work, and that means the person using it will bend over to place something (and the ammo is created). Share this post Link to post Share on other sites