sinchiruna Posted September 12, 2010 Share Posted September 12, 2010 hi.. been trying to get a conveyor belt to work. (from the printing press) the animation shows fine in the geck preview screen but in game it won't rotate? the line(s) of code in question is:LokiManufactTread01REF.playgroup backward 1LokiManufactTread01REF.playgroup forward 1 this is the code i am trying to use.. : scn LokiManufacturingPressSCRIPT short pressOn ; 0 - press is off 1 - press is on ref actionRef Begin onActivate set actionRef to getActionRef if (actionRef == player) showmessage LokiPressActivatedElsewhereMSG elseif (actionRef == LokiMainPressTerminal01aREF) if (pressOn == 1) LokiManufactPress01REF.playgroup backward 1 LokiManufactTread01REF.playgroup backward 1 LokiManufactPressSmoke01REF.disable set pressOn to 0 elseif (pressOn == 0) LokiManufactPress01REF.playgroup forward 1 LokiManufactTread01REF.playgroup forward 1 LokiManufactPressSmoke01REF.enable set pressOn to 1 endif endif End any thoughts? Link to comment Share on other sites More sharing options...
EARACHE42 Posted September 13, 2010 Share Posted September 13, 2010 I don't have access to my code right now, but I implemented a modified version of the conveyor belt mesh in the Book of Earache mod. Check the trigger near the business end of the press in Hubris to see how I worked the animation. Link to comment Share on other sites More sharing options...
sinchiruna Posted September 13, 2010 Author Share Posted September 13, 2010 whew.. thanks for replying.. was starting to think it'd be skipped. i looked at the hubris comics.. and didn't see a trigger.. i am currently downloading your mod and will get back. edit: ok found your trigger and made mine work.. (good idea about a trigger)at least the debug message part shows up now. but the animation still doesn't happen.i unpacked your .bsa resource file and did not find a custom conveyor mesh. almost got it!... :) new code ran from trigger/activator scn LokiManufactTreadTrigger Short DoOnce BEGIN OnTriggerEnter Player ; IF DoOnce == 0 LokiManufactPress01REF.playgroup forward 1 LokiManufactTread01REF.playgroup forward 1 showmessage LokiDebugMessage01 ; Set DoOnce to 1 ; EndIF END Link to comment Share on other sites More sharing options...
Recommended Posts