Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#562979 14/02/15 12:26 AM
Joined: Oct 2014
B
Burgee Offline OP
enthusiast
OP Offline
enthusiast
B
Joined: Oct 2014
Having trouble making sense of

ItemRotateY(ITEM_item, REAL_Angle, REAL_Speed);

I guess I'm not familiar with what REAL_ variables are. I plug in just the item and leave the REAL_ fields blank and it compiles fine. I plug in numerical values for the angle and speed, and I get an error.

Can someone tell me how to use this thing?

Joined: Jul 2014
R
addict
Offline
addict
R
Joined: Jul 2014
Real variables are "real numbers", which for scripting purposes means that they require a decimal point somewhere in the number.

The Integer 1 would be 1.0 as a Real variable, for example.

Joined: Sep 2014
Z
apprentice
Offline
apprentice
Z
Joined: Sep 2014
If you are plugging in values and there are not working, try different range of numbers 0 through 1 is a common range but real numbers can be any number expressed by a decimal.

Joined: Oct 2014
B
Burgee Offline OP
enthusiast
OP Offline
enthusiast
B
Joined: Oct 2014
Just needed a .0 added at the end. Thanks for the quick fix.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5