Jump to content

Playgroup and a conveyor belt


sinchiruna

Recommended Posts

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 1

LokiManufactTread01REF.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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...