Danke für die Anwort Diafero,
ja das hast du richtig verstanden.
Ich drücke auf den Knopf die Tür geht auf, ich geh durch die Tür und hinter mir schließt sie sich wieder.
Dafür hab ich dann innen eine zweiten Knopf um wieder nach draussen zu kommen.
Es wäre wunderbar wenn ich da kein SDL für bräuchte, denn das raubt mir wirklich den lezten Nerv.
Was meinst du damit (mit dem [ code][/code]-Tag)???
Thanks for the reply Diafero,
yes that's what you understood.
I press the button the door opens, I enter the door behind me and it closes again.
For that I gave then a second button to go back inside to come out.
It would be wonderful if I could would not need SDL, because it robs me really nerve most recent developments.
What do you mean (using the code] tag)?
Liebe Grüße
Dulcamara
- Code: Select all
AFZKnopf:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: AFZClickRgn #Drueckregion oben
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: AFZAuf
AFZKnopf_1:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: AFZClickRgn_1 #Drueckregion unten
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: AFZAuf_2
#DrueckPosition oben (Emty)
AFZOneShot:
logic:
actions:
- type: oneshot
name: DruecktKnopfoben #AvatarAnimation
oneshot:
animation: DoorButtonTouch
#DrueckPosition unten (Empty)
AFZOneShot_1:
logic:
actions:
- type: oneshot
name: DruecktKnopfunten #AvatarAnimation
oneshot:
animation: DoorButtonTouch
AFZKnopfEmitter:
type: soundemit
sound:
flags:
- localonly
- is3dsound
minfdist: 15
maxfdist: 30
file: clftDoor_Button
volume: 0.8
type: soundfx
AFZKnopfEmitter_1:
type: soundemit
sound:
flags:
- localonly
- is3dsound
minfdist: 15
maxfdist: 30
file: clftDoor_Button
volume: 0.8
type: soundfx
#AFZ-SoundEmitterer
Steinsound:
type: soundemit
sound:
flags:
- localsound
- is3dsound
file: Stein2 # TODO!!!
volume: 1
type: SoundFX
minfdist: 50
maxfdist: 150
# Behandlung des "AFZ"; nur einmal noetig, da Bedienung Innen/Aussen enthalten
AFZ:
animations:
- name: AFZAnim
autostart: 0
loop: 0
logic:
actions:
- type: responder # BEDIENUNG VON oben
name: AFZAuf
responder:
states:
- cmds: # ----- Aufzug (VON oben) -----
- type: oneshotmsg # Avatar-Animation
params:
receivers:
- oneshotmod:DruecktKnopfoben
callbacks:
- marker: "DoorButtonTouch"
receiver: respondermod:AFZAuf
user: 0
waiton: -1
- type: animcmdmsg # AufzugAnimation
params:
receivers:
- 006D:AFZ
animname: AFZAnim
cmds:
- setforewards
- continue
waiton: 0
- type: soundmsg # Sound
params:
receivers:
- 0011:Steinsound
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:AFZKnopfEmitter
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:AFZKnopfEmitter_1
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
nextstate: 0
ncallbacks: 1
waittocmd:
- key: 0 #cmds with waiton of 0
msg: 0 #wait for callback for user 0
curstate: 0
flags:
- detecttrigger
- type: responder # BEDIENUNG VON unten
name: AFZAuf_2 # <===
responder:
states:
- cmds: # ----- Aufzg (Von unten) -----
- type: oneshotmsg # Avatar-Animation
params:
receivers:
- oneshotmod:DruecktKnopfunten # <===
callbacks:
- marker: "DoorButtonTouch"
receiver: respondermod:AFZAuf_2 # <===
user: 0
waiton: -1
- type: animcmdmsg # Aufzug-Animation
params:
receivers:
- 006D:AFZ
animname: AFZAnim
cmds:
- setforewards
- continue
waiton: 0
- type: soundmsg # Sound
params:
receivers:
- 0011:Steinsound
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:AFZKnopfEmitter
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:AFZKnopfEmitter_1
cmds:
- play
- setvolume
volume: 0.8
waiton: 0
nextstate: 0
ncallbacks: 1
waittocmd:
- key: 0 #cmds with waiton of 0
msg: 0 #wait for callback for user 0
curstate: 0
flags:
- detecttrigger