OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dave52390 on 19 Aug 2004, 22:32:35
-
How do i make AI put there goggles down?
-
try loon_1 RemoveWeapon "NVGoggles"
then, when they need them, just make a trigger that says:
loon_1 AddWeapon "NVGoggles"
-
Sry not NVgoggles im talknig about like BAS gets Goggles to keep sand out of eyes
-
Ahh, that u cant do.
The goggles are part of the .p3d file, and so are effectivly built into the person like ur mouth ears are built into ur head. Maybe someone will eventually make a man w/ moveable goggles, but im afraid we dont have that right now. :'(
-
actualy i think the delta and ranger BAS soldiers can do dat
the code is even in their readme.... so just open the readme n search 4 it :P
LCD OUT
-
ah, so im wrong :D
im delighted (of course it is LCD) :o ::)
yes, if they can do it then check the readme. All actions, and everything about the unit are posted in there.
d*mn version 1.46 >:(
-
lol go buy resistance :P they have somin there calld animations repeat after me
A-N-I-M-A-T-I-O-N :P
;)
hi tyger sup long taam no... c ? ;D ::)
:cheers:
LCD OUT
-
oh, i ordered Resistance coupla days ago ;D it'll get here soon.
yeah its been a while LCD :) a good coupla months a least
now how do you say it again????? ???
A-N-I-M-A-T-I-U-N-S?
i'll never get it :'(
-
You mean animations?
Anim-a-tyons
? :P
Anyway, yeah, you can make an addon so that you use setobjecttexture to make it look like the goggles are gone, and removeaction to get rid of the Lower Goggles thing..
The UKF units do that with hats (You remove they're helmet, and they're now wearing a, uh, hat!)
Anyway, the goggles code is all in the readme
- Ben
PS, was that animation thing a joke Tyger? ::)
-
;D Yeah, i was just kidding. Oh well, someone falls for it every now and then ;)
-
For BAS units:
To Lower:
unit animate ["goggles", 1]
To Raise:
unit animate ["goggles", 0]
-
@ tyger : hope u recive resistance soon.... then u can go test ma mision :P (its in the sig line, i like advertisin 8))
@ Onix : u dont have 2 use setobjecttexture u can also use animate command ;) or am i getin somin wrong here ? ;D ::)
@ mud : lol som1 who makes somin usefull :thumbsup:
@ dave : solve this thread if the code mud_spike workes ;) if not check the readme :P ;D
luv ya guyz ;D :-X :-*
LCD OUT
-
ty
-
still gotta solve da topic dave ;)
us the solve button it somwere there ^ ;D
LCD OUT
-
I know how to lower and raise goggles for an individual,but how would i go about doing it for an "AI" controlled group..What would i need to put in the on activation field...
-
"_x animate [{goggles}, 1]" forEach units grp1
Not guaranteed.
-
"_x animate [{goggles}, 1]" forEach units grp1
Not guaranteed.
Thanks Maguba...your method pointed me in the right direction.I used this.....
"_x animate [{goggles}, 1]" forEach units this ;D