Custom Height Slider Question
Wall3t
Member Posts: 90
So someone awesome here posted about how to add height sliders to neverwinter nights in coding yet im quite inpet at scripting/ coding. I believe this coding is based on variables but i dont know what exactly i do when the scripting doesnt compile
void main()
{
float SetobjectVisualTransform(object oObject, int nTransform, float fValue);
}
that being the code i put but it tells me "height_10.nss(3): ERROR: PARSING VARIABLE LIST" "height_10" being the name of the script
i made another based on the suggestion as followed
void main()
{
float SetPCVisualTransform(object oObject, int +10, float fValue);
}
This also gives me the same error code "height_10.nss(3): ERROR: PARSING VARIABLE LIST" would anybody be able to tell me what I did wrong?
void main()
{
float SetobjectVisualTransform(object oObject, int nTransform, float fValue);
}
that being the code i put but it tells me "height_10.nss(3): ERROR: PARSING VARIABLE LIST" "height_10" being the name of the script
i made another based on the suggestion as followed
void main()
{
float SetPCVisualTransform(object oObject, int +10, float fValue);
}
This also gives me the same error code "height_10.nss(3): ERROR: PARSING VARIABLE LIST" would anybody be able to tell me what I did wrong?
0
Comments
To give you a basic idea of how the new scaling function needs to be added to the game, this is a line of code I use in several of my NPC OnSpawn scripts to randomize their sizes +/- 10% of their base size:
SetObjectVisualTransform(OBJECT_SELF,OBJECT_VISUAL_TRANSFORM_SCALE,1.0+(IntToFloat(Random(11))/100.0)*IntToFloat(Random(3)-1));
With a bit more information about how you'd like to use the new scaling function, it might be possible to help you come up with a way to accomplish it.