Home   Help Search Login Register  

Author Topic: Scan unit inventory?  (Read 550 times)

0 Members and 1 Guest are viewing this topic.

FFAK

  • Guest
Scan unit inventory?
« on: 17 Dec 2002, 11:59:40 »
hello

how can I script an inventory scanning?

What I want:
the script scan the unit inventory and if a weapon is not detected than the script disable "addaction"?
(if M16s are not precent in helo as cargo, the reammo mission objectif will be failed for example)

thanks :)

FFAK

  • Guest
Re:Scan unit inventory?
« Reply #1 on: 20 Dec 2002, 21:37:19 »
Nobody?  :'(

I tried last night and I met some problems

say mygrp (1 officer+1 soldier+1LAW)
showmap false foreach in mygrp


the way I want:
the officer see the map (because he's carrying binocular) -> showmap true
the other players stay showmap false

the officer is KIA->the other players stay showmap false until one of them take binocular on officer' body. Then only this player is showmap true (the other stay false)

thanks for help

« Last Edit: 20 Dec 2002, 21:39:24 by FFAK »

Dschulle

  • Guest
Re:Scan unit inventory?
« Reply #2 on: 22 Dec 2002, 03:10:48 »
use something like:
Code: [Select]
#test
showmap (player hasweapon "binocular")
~1
goto "test"