Home   Help Search Login Register  

Author Topic: American Ver bug  (Read 1218 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
American Ver bug
« on: 14 Jul 2007, 02:17:26 »
just a note

it seems dat da US ver of ArmA 1.08 (didnt check versions b4 dat) has a bug w/ eventhandlers  :blink:

i want my soldier 2 shot just 1 shot usin evethandler so i used

Code: [Select]
snip addeventhandler ["fired",{(_this select 0) removemagazines "10Rnd_762x54_SVD"}]
and it worked on my and on all da non american testers... but it CTDed all da american testers game...

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline T_D

  • CWR
  • **
  • Troubleshooting Device
Re: American Ver bug
« Reply #1 on: 14 Jul 2007, 21:12:07 »
Did you tried this:
Code: [Select]
snip addeventhandler ["fired","(_this select 0) removemagazines ""10Rnd_762x54_SVD"" "]In ArmA there is a difference between strings("") and code({}) and since addEventhandler requires a string you cant use {}. But it is weird that it crashed or worked instead of just producing an error message.  ???

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: American Ver bug
« Reply #2 on: 14 Jul 2007, 21:18:47 »
T_D, you can easily use strings in eventHandlers, for example
Code: [Select]
this addEventHandler ["hit",{hint "ouch"}]works just fine..

I remember OFP having an issue with removing weapons/ammo (can't remember which it was) from an AI if it was targeting an enemy unit, it caused the game to crash..
That of course doesn't explain this CTD happening only with the Atari version of the game.. :(
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: American Ver bug
« Reply #3 on: 14 Jul 2007, 21:57:29 »
yea i tried both kind of syntax

also it seems 2 crash ArmA also on da Czech version... i donno exactly what kinds of diff vers r dere

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: American Ver bug
« Reply #4 on: 15 Jul 2007, 21:33:26 »
LCD,

How about if you have the eventhandler call a script instead.  Then put the remove code inside the script.  Maybe that will sneak past this bug.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...