lynch_ppl
Oct. 26, 2005 17:29:35
been trying to use an opset command in the callback parameter of an OTL…
I basically want the display and render flag of a node to be turned on with the callback..
so far I have
opset on ‘oppwf()’ geo_input
doesnt seem to work but I have a feeling its something simple I'm missing here…any suggestions?
wolfwood
Oct. 26, 2005 18:30:05
opset -d on -r on `oppwf()`
I think
lynch_ppl
Oct. 26, 2005 20:12:50
thanks…got it to work…
opset -d on -r on op
/obj/TrainWRECK/groups_method/ground
wolfwood
Oct. 26, 2005 21:29:55
The path op
/obj/TrainWRECK/groups_method/ground
Is a static path. If you create another instance of your OTL or rename it, the callback will no longer work, that's why you need the `oppwd()`
lynch_ppl
Oct. 26, 2005 23:30:17
thanks
opset -d on -r on `oppwf()` groups_method/ground
works great
goldfarb
Oct. 27, 2005 10:21:18
if it's an OTL it wont work when matched to it's definition…
lynch_ppl
Oct. 27, 2005 13:05:44
is there a way to set the definition in hscript? Then you could run that first…
goldfarb
Oct. 27, 2005 14:16:03
you can use otunsync to allow editing of the OLT
then run whatever hscript you want
then otwrite to write that new definition to disc
then otload to bring that new definition into your session
then otprefer to change the definition in your session to the new file
then otsync to match the definition up again
lots of work just for a display flag….
plus doing this will change ALL the instances in your session and in every other file that uses that OTL…
better to just use switches/etc for this…
lynch_ppl
Oct. 27, 2005 14:47:50
thanks for the info…very useful…