Difference between revisions of "Variables and Properties"
→From a non-owned fragment / other quest script
imported>Evernewjoy |
imported>Evernewjoy |
||
Line 196: | Line 196: | ||
Scriptname RamaWorkingSCRIPT extends ObjectReference | Scriptname RamaWorkingSCRIPT extends ObjectReference | ||
;you must set these "property" values outside this script | ;you must set these "property" values outside this | ||
;script. | |||
;see number 3 below | ;see number 3 in article (below) | ||
message property msg auto | message property msg auto | ||
Line 216: | Line 216: | ||
int test = 2 | int test = 2 | ||
;any event could be used here, like onTriggerEnter | ;any event could be used here, like onTriggerEnter, | ||
;make a trigger volume in the editor and attach | ;make a trigger volume in the editor and attach | ||
;this script to it and use onTriggerEnter for | ;this script to it and use onTriggerEnter for | ||
Line 227: | Line 227: | ||
if (!done) | if (!done) | ||
;only run if player is the one activating this | ;only run if player is the one activating this | ||
;object | ;object | ||
if(triggerRef == game.getplayer()) | if(triggerRef == game.getplayer()) | ||
done = true ;run only once | done = true ;makes button run only once | ||
Line 249: | Line 249: | ||
;you can now manipulate the other script's hidden | ;you can now manipulate the other script's hidden | ||
;var | ;var via its public property name and functions, | ||
;using the scriptVar | |||