Home   Help Search Login Register  

Author Topic: irLock attribute of what class?  (Read 1179 times)

0 Members and 1 Guest are viewing this topic.

DE

  • Guest
irLock attribute of what class?
« on: 06 Mar 2003, 20:15:59 »
ok, irLock is a valid attribute for the cfgVehicle class? or is for cfgAmmo class?, and enables what during game play?

Is there a irTarget also?

Anyone can help me.  ???

Skaircro

  • Guest
Re:irLock attribute of what class?
« Reply #1 on: 08 Mar 2003, 13:36:59 »
irLock is for cfgAmmo, it determines if a type of ammo will lock on or not when fired.
e.g. a free fall bomb does not lock on, a missile will lock on and follow the target.

canLock is for cfgWeapons, and determines if a particular weapon will lock onto a target.
canLock=0 no lock, canLock=1 lock in cadet mode only, canLock=2 lock always


You can use canLock=1 or canLock=2 and irLock=0, this means the weapon will lock on but the ammo wont home in on the target.
Or you can use canLock=1 or canLock=2 and irLock=1, this means the weapon will lock on and the ammo will home in on target.


irTarget is for cfgVehicle and determines if a vehicle can be targeted (using canLock and irLock).
irTarget=1 means a vehicle can be targeted and "locked onto", irTarget=0 means you will not be able to lock onto that vehicle.
(same with laserTarget I think)

DE

  • Guest
Re:irLock attribute of what class?
« Reply #2 on: 08 Mar 2003, 15:43:36 »
Thx.

Now ill know what the hell im doing in my .cpp. lol