Jump to content
Sign in to follow this  
Tand3rsson

Selectweapon, doTarget etc problem

Recommended Posts

OK. So here is what i want to get: I have a blufor veichle moving, when it activates a trigger, i want my opfor rpg7 militia in the hills fire his rpg at a certain posistion (just missing the blufor veichle)

I place my RPG7 militia, in his init I type: this selectweapon "RPG7V";

Dosent work.. he stands there with his ak74. If i remove his weapons, and only give him the rpg, well, he rather just stand with his hands out...

Thats my first problem, next i place an "invisible h" and name it "rpg". I seem to be able to make my lovely militia man target the invisible h, using:

man doTarget rpg. in a trigger activated by the blufor

Ofcourse he does so with his ak in his hands... next i cant get the doFire to work...

please help, cause I cant see what I am doing wrong.

---------- Post added at 07:37 PM ---------- Previous post was at 07:09 PM ----------

So playin around a bit, i replaced the invisible heli with a car.. then it works. Kind of annoying cause i dont want a big ass car standing by the road

---------- Post added at 07:37 PM ---------- Previous post was at 07:37 PM ----------

any ideas?

Share this post


Link to post
Share on other sites

Yepp, it works perfectly if I just change the target to a car. But for some reason he is not "seeing" the invisible (haha.. right..:) ) helipad?

Share this post


Link to post
Share on other sites
Yepp, it works perfectly if I just change the target to a car. But for some reason he is not "seeing" the invisible (haha.. right..:) ) helipad?

Wait why do you want him to shoot at an invisible helipad?

What if you just changed the object to a small tire?

Share this post


Link to post
Share on other sites

Becuase I want him to be "itchy", fire to soon, and warn blufor about the whole ambush. Well, i tried the tiny can... but the smallest i got him to fire at is the road cone... I can live with that :D

Share this post


Link to post
Share on other sites

I'm having a similar problem. I have a trigger that creates few ennemies and I want one of them to destroy the players' humvee. Well, it doesn't work. I've tested the code a bit and I've noticed that the dude isn't switching is weapon to RPG7V at all. I've read that you should put the muzzle name instead of the weapon's name, that's what I did. Still, the ennemy doesn't switch at all. I've also tried the name of the weapon instead of the muzzle, still doesn't work.

So you know, TK_GUE_Soldier_AT_EP1 starts with a RPG7V and PG7VL ammo.

Here's the code.

"TK_GUE_Soldier_AT_EP1" createUnit [getMarkerPos "ambush1", Group1, "rpg = this"];
rpg selectWeapon "PG7VL"; 

I also want this unit to use it's RPG and shoot at a humvee. I've tried ordering doTarget and doFire at a humvee named "Humvee". The unit do target the vehicle but never shoot at it. Why the hell ? :(

rpg doTarget Humvee; 
rpg doFire Humvee;

Edited by Silverwave

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×