Caiman Posted March 5, 2012 Share Posted March 5, 2012 (edited) Hi guys, I´m currently working on a quest. The player either has the choice to kill a guy or talk him into leaving forever... Now I´m using a scene to make the nsc leave after he got convinced to leave. I want him to go to the bottom left border and then just disappear... which means I have to "Disable" him. I tried to to insert this script(properties properly set) into the end of the scene or in a queststage... but neither compiles. :SCK keeps telling me "Disable" is no function! QuestStageif GetOwningQuest().GetStage < 49 Alias_Dad.GetRef().Disable() endif OnEnd SceneAlias_Dad.GetRef().Disable() Edited March 5, 2012 by Caiman Link to comment Share on other sites More sharing options...
MofoMojo Posted March 5, 2012 Share Posted March 5, 2012 Hi guys, I´m currently working on a quest. The player either has the choice to kill a guy or talk him into leaving forever... Now I´m using a scene to make the nsc leave after he got convinced to leave. I want him to go to the bottom left border and then just disappear... which means I have to "Disable" him. I tried to to insert this script(properties properly set) into the end of the scene or in a queststage... but neither compiles. :SCK keeps telling me "Disable" is no function! QuestStageif GetOwningQuest().GetStage < 49 Alias_Dad.GetRef().Disable() endif OnEnd SceneAlias_Dad.GetRef().Disable() Try Delete()? -MM Link to comment Share on other sites More sharing options...
Caiman Posted March 5, 2012 Author Share Posted March 5, 2012 (edited) In a tutorial it said something like "Don´t Fkkk with delete or it will fkkk with saves"... is it "save" to delete an actor? EDIT:It says "Delete is not a function." :S Edited March 5, 2012 by Caiman Link to comment Share on other sites More sharing options...
Caiman Posted March 5, 2012 Author Share Posted March 5, 2012 *bump* Link to comment Share on other sites More sharing options...
MofoMojo Posted March 5, 2012 Share Posted March 5, 2012 *bump* Sounds like your ref is None. Try this if GetOwningQuest().GetStage < 49 ObjectReference test = Alias_Dad.GetRef() Debug.MessageBox ("ALIAS_DAD is REF:" + test) endif Link to comment Share on other sites More sharing options...
Caiman Posted March 6, 2012 Author Share Posted March 6, 2012 Ah right... that ref gets enabled at a Marker during another stage of the quest... I´m gonna try your script out, thanks. :) Link to comment Share on other sites More sharing options...
Caiman Posted March 7, 2012 Author Share Posted March 7, 2012 Using "TryToDisable()" finally worked. :) Link to comment Share on other sites More sharing options...
Recommended Posts