ashene64 / open-sauce

Automatically exported from code.google.com/p/open-sauce
0 stars 0 forks source link

OS Script commands #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. (unit_data_get_integer (unit (list_get (players) 0)) 
total_grenade_count[frag])
2. (object_data_get_real myObj1 velocity z 1)
3. (player_data_get_object 0 nearest_object)

What is the expected output? What do you see instead?
1. I expect to get my frag grenade count, not my plasma (Same issue with 
plasma; it returns frags)
2. I expect it to return -1 since I mistyped transitional_velocity as just 
velocity, not an exception like it does.
3. I expected the closest object to be returned, instead it will only return 
vehicles when I am prompted to enter them.

What version of the product are you using? On what operating system?
Open-Sauce 3.0.3, Halo Custom Edition 1.09, Windows 7 64bit.

Original issue reported on code.google.com by heath.ca...@gmail.com on 19 Jun 2012 at 12:05

GoogleCodeExporter commented 9 years ago
1. Fixed in revision daacb23ca061d0c9f896d46ce87320b0cdce80a4
2. get_real only takes 3 parameters, not four as you have it. However, 
exception should be fixed in revision 54c3b8593af616f4afc7afd313621c6ccd4ea6a5
3. This is the correct behavior. nearest_object is the action_result's nearest 
object. action_result related objects include weapons, vehicles, and devices 
(nearest_object is used to generate the hud message for 'pickup/enter/touch' 
whatever)

Original comment by kornma...@gmail.com on 19 Jun 2012 at 7:07