OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Igor Drukov on 07 Jul 2003, 16:57:57
-
In the attachment below, you'll find a demo mission with a script for RPG/Law/etc. loonies to shoot un-armored units with their secondary weapons.
It uses a "fired" event handler, calculates each unit's estimated number of rockets left, and comes with the "weapon" animation.
I'd like to beta-test it, because I know you folks will find ways to improve it.
For I have problems with :
* loonies targetting loonies that are at a different altitude. Even though I use the velocity of the latest shot bullet (divided by 10), there is no way I can get the rocket to go higher or lower than its source ;
* reloading animation : what is the move for reloading RPGs/Laws ?
Thanks in advance for your help, any constructive criticism is warmly welcome.
Igor Drukov
-
Here is the Reload Aniamtion for AT Weapons etc
WeaponReloadAT
-
Cheers matey !
So basically, there's only the first issue that remains to be solved now...
-
OMFG YOU RULE THIS PLANET !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thought you wanna know ;)
O'Neil
-
Thanks !
But I still wish someone knew an answer to the first question...
-
You mean "this weaponreload ATlaunch"
WeaponreloadAT is to get more rockets from an ammo box! I think...
Maybe if you ask Dude96 he may post it on our website or our forum (link on my signature). 8)
-
Hey -
Could you solve the height problem by getting the hieght of the target -- 'GetPos target Select 2' -- and create the rocket at that height instead?
Should work :-\
EDIT: Just realised that it would depend on you knowing the trget you were aiming and naming every man on the map - errr - maybe not then ::)
Stevo :)
-
@ Stanhead :
I was just speaking about the animation, not the action.
@ ste150 :
I had thought about something like that, but there is no "GetTarget" command...
Thank you guys anyway !
-
EDIT: Just realised that it would depend on you knowing the trget you were aiming and naming every man on the map - errr - maybe not then ::)
Stevo :)
I just did that in my latest script--its quite simple. But the names are local to the script not global.
-
Hey Zayfod,
That sounds interesting : could you be a little more specific ? Or rather, what is your latest script ?