I am trying to manipulate a location's field, but keep getting errors. The compiler throws an error when I try to manipulate a vector given a location
location crate_1_loc = GetLocation(GetObjectByTag("crate_1"));
crate_1_loc.vPosition.x += 1.0; // This is not valid
The error is:
ERROR: LEFT OF STRUCTURE PART NOT STRUCTURE
I noticed on the NWNwiki and the NWN lexicon, they specifically say that the vector can be manipulated using the dot operator, but it doesn't say whether it's possible for a location. I can take the long way around by getting the object's vector, manipulating that, then creating a location from there; but I was curious if using the dot operator on a location is even possible.





Retour en haut






