- Code: Select all
- type: sceneobject
ref: scnobj:<object name>
And catch it in the Python code like this:
- Code: Select all
MyObj = ptAttribSceneobject(3, 'My Scene Object')
- type: sceneobject
ref: scnobj:<object name>
MyObj = ptAttribSceneobject(3, 'My Scene Object')
<region object>:
logic:
modifiers:
- name: <logic name>
flags:
- multitrigger
activators:
- type: objectinvolume
conditions:
- type: volumesensor
satisfied: true
direction: enter
actions:
- type: responder
ref: :<responder name>
actions:
- type: responder
name: <responder name>
responder:
states:
- cmds:
- type: enablemsg
params:
receivers:
- scnobj:<disabled object name>
cmds:
- drawable
- disable
waiton: -1
- type: enablemsg
params:
receivers:
- 002D:<logic name>
cmds:
- disable
waiton: -1
nextstate: 1
waittocmd: 0
Nadnerb wrote:As for making it vanish on link in... You could make a region on your link in point that has a responder that disables the draw as soon as you link in, and then disables itself. (happens to be exactly what the region this code was taken from does) Hold on while I whip together an example.
Erik wrote:Now I'm wondering, did Cyan use that method as well for their Ages to hide things? I just had to think of the everything-on bug that happened sometimes.
Users browsing this forum: No registered users and 3 guests