Home   Help Search Login Register  

Author Topic: PLayer Has Weapon  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

armymanbronson

  • Guest
PLayer Has Weapon
« on: 11 Dec 2002, 15:01:10 »
hey lads, just a quick question, i am making a mission where the player has been shot down, but the radio man bailed out and is dead a few clicks away. so the player has to go and use his radio to radio for help. but i want his waypoints not to continue untill he has the radio and has used it. i though player has weapon "sebrpc" but for some reason it gives the player his next waypoint even though he hasnt picked up the radio. i tried a few other ways but after he gets the radio the way point just says wait for others. so it wont give him the next way point. im guessing u have to use a script for this, anyone know of one to help us out??
cheers
brons 8)

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:PLayer Has Weapon
« Reply #1 on: 11 Dec 2002, 17:19:34 »
the "sebrpc" reference made me think of the 'Nam Pack, where there's this one soldier who is a radio man. I suppose that's what you're using, right?

Anyway, as far as I can tell the actual radio doesn't do anything, and it's used for exactly the kind of stuff you're planning on using it for ;) However, since it can't fire and doesn't have any ammunition or any other way to check if you're "using" it, you better just add a little extra condition to that waypoint...i.e, after using the radio (as in the radio menue, which is what I suppose you're using), you just add a line like, usedRadio=true at the back of the script or on Activation line, and then put usedRadio in the condition field, making it look something like:

aP hasWeapon "sebrpc" AND usedRadio

:-) that should solve your problem. If this wasn't your problem, please elaborate a little bit more  ::)  :P

G'luck!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"