LarryG on 27/6/2013 at 22:26
Put TweqOnOff on a metaprop and give Garrett the metaprop?
sNeaksieGarrett on 27/6/2013 at 22:47
Yup, I thought of that after writing my post and tried that. However, it didn't seem to work. I created a button, CD linked it to a marker with NVRelaytrap, and then CD linked from the marker to Garrett. You can't CD link to Player, that doesn't exist in the object hierarchy.
The Watcher on 27/6/2013 at 22:51
Try to CD it to the start point. In theory, the link should get moved to the Player object when sim starts.
sNeaksieGarrett on 27/6/2013 at 22:56
Nope, didn't work. I have heard that you can use game_mode_backup 0 that will cause a player object to appear into your copy of dromed, but that the command can cause corruption in the mission. I guess though that's only if you forget to turn it back off.
LarryG on 27/6/2013 at 23:01
NO!! It is that the state that the mission was in when you exited game mode has become persistent, screwing up your mission. Do NOT save the mission once you use set game_mode_backup 0. You will be VERY sorry of you do.
sNeaksieGarrett on 27/6/2013 at 23:03
Okay thank you. So that method won't work then. I guess I misunderstood, because I saw a post by Sluggs in some old thread that mentioned a player object being created and I assumed he had found a way to make it work. I didn't even type the command in yet, I wanted to make sure before using it.
LarryG on 27/6/2013 at 23:08
The issue that you have is that you want to put TweqOnOff on Garrett, but have no free slot for adding a new script? The metaprop idea should work. If it doesn't try putting the script on Avitar and make sure Garrett inherits.
sNeaksieGarrett on 27/6/2013 at 23:14
I did do the metaprop idea, but didn't work. I think the culprit is that I'm CD linking to Garrett and not Player. We used a NVCreateAndLink before to make a ParticleAttachment link, I was thinking I could use NVLinkBuilder in this instance...
TypeRED on 27/6/2013 at 23:25
You can use the script TweqOnOff on avatar instead of garrett, just like Larry said. And NV's relaytrap to send script messages to a named object, in that case "player". that method does work in theory. i'll do that tomorrow and post the necessary info how to set it up
EDIT:
here you go, i didnt even need a relay or controldevice link,
NVTrigRoomPlayer on all rooms marked as "
Outside" and the design note
NVTrigRoomPlayerTDest="player" does the trick:
going in an outside area activates the breath emitter, going inside stops it
mission and dark.gam are in this file > (
http://www.gamefront.com/files/23459285/Thief2.rar) http://www.gamefront.com/files/23459285/Thief2.rar
check the
Rooms on the hierarchy, on the Outside room i used the
NVTrigRoomPlayer , then look at
avatar, where i put the
TweqOnOff script, because garrett's script property was full
sNeaksieGarrett on 28/6/2013 at 22:40
Dromed crashes when I try to load test.mis. Yes, I did replace dark.gam
It's okay though, I managed to make it work with just what you told me! Thank you very much TypeRED!