OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Padiimiite on 06 Jan 2003, 02:53:51
-
Ok, what Im trying to accomplish here is to have a civ'y armed with a handgrenade lob it into a group of soldiers. Now I can get him to throw the grenade but I can't get him to throw it at the soldiers. I tried using DoFire, but that only seems to work with guns.
One more thing, when I CamCreate bombs, like a "laserguidededbomb" .etc, can I CamCreate a grenade and get it to go off? I've tried and it doesn't work. I want my soldiers tripping over mines and stuff, but I don't want explosions so big that they take out the entire squad. But it is funny watching them go flying across the screen.
-
plenty of mine scrolls in the ed's. Depot (http://www.ofpec.com/editors/index.php), matey! :-*
-
ya I know, but I was wondering if you could do it with a grenade. But my main question is how do you get someone to actually throw a grenade at another person instead of just throwing it as far as they can?
-
try: d00d DoTarget deadsoldier; d00d SelectWeapon "HandGrenade"; d00d Dofire ObjNull
-
or I think civvy DoFire deadussatanorsummatlikethat
-
Alright, I figured out how to camcreate a grenade and get it to go off....you just use "grenade" instead of "handgrenade"....heh
But I still can't get the civy to throw the grenade AT anyone, he just throws it as far as he can. Thats no good for creating a cutscene. He has to hit something everytime not just when he feels like it. O well, nothing a script can't fix.
-
<SNIP>
But I still can't get the civy to throw the grenade AT anyone, he just throws it as far as he can. Thats no good for creating a cutscene. He has to hit something everytime not just when he feels like it. O well, nothing a script can't fix.
Did you try what I had suggested? This will make the civvy throw the grenade at whoever he is told to target. I set this up in the editor and it worked flawlessly!!
-
"try: d00d DoTarget deadsoldier; d00d SelectWeapon "HandGrenade"; d00d Dofire ObjNull "
yes that works flawless...remember that d00d is his name...:) u can use this with many variations...always works.
-
ok, ya your suggestions work but the civy with the grenade has to be outside of the minumum range or something or he won't throw it. Which sucks because I want him to throw it when he is close up, but safely away from, the target.