klmnoop Posted August 26, 2015 Posted August 26, 2015 Whenever I try to compile the below script I get an error about an unknown type: Scriptname LNBedroomSexEventScript extends QuestSexLabFramework Property SexLab AutoFormList Property ActorList Auto{Property referencing the LockList}ObjectReference[] Property RugMarkers Auto{Array of all of the invisible bed markers on the rugs in the middle of the room}Int Property FormListCounter = 0 Auto{Is used to keep a record on how many actors are in the FormList}Actor[] Property ActorQueue Auto{A copy of ActorList which can be modified}Event OnActivate(back2BedDoors akActionRef)Debug.Trace("Activated by " + akActionRef)RegisterForSingleUpdate(3)EndEventObjectReference[] Property back2BedDoors Auto Starting 1 compile threads for 1 files... Compiling "LNBedroomSexEventScript"... E:\Programs\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LNBedroomSexEventScript.psc(17,31): unknown type back2beddoors No output generated for LNBedroomSexEventScript, compilation failed. I haven't finished the whole script yet I'm doing little bits at the tie, what I'm trying to do with this script is to update a list of actors that are in the cell whenever someone uses the load door either inside the cell or the connecting cell. I tried using a LockList for this task but the compiler doesn't let you index forms and I'm not sure how to make an actor array out of a lock list. The objectreference is targeting the 2 dwemer large load doors (in an array, ive tried individually but still the same problem) in the connecting cells. I've extracted all of the scripts in the rar file because that has fixed some peoples problems regarding unknown types. Does anyone know why its coming up with an unknown type? And how to fix it? or is there an easier way to get an array of all the actors in a specific cell?
bahow Posted August 26, 2015 Posted August 26, 2015 It seems like you have a problem with OnActivate event. I haven't used arrays, but if there are not much property in the array you can try this: Event OnActivate (ObjectReference akActionRef) If(akActionRef == <actor>) ... EndIf EndEvent
klmnoop Posted August 26, 2015 Author Posted August 26, 2015 It seems like you have a problem with OnActivate event. I haven't used arrays, but if there are not much property in the array you can try this: Event OnActivate (ObjectReference akActionRef) If(akActionRef == <actor>) ... EndIf EndEvent Unfortunately that didn't work :/ instead of the unknown type error i got no viable input errors at < and ) I tried taking the < and ) away and got: (18,26): no viable alternative at input '\\r\\n :/ If i take away "<" ">" "(" ")" it then comes up with: (18,20): actor is not a variable If i make a actor property and use that instead I get the unknown type error back but i also get this error: (18,17): cannot compare a back2beddoors to a actor (cast missing or types unrelated) I think i understand the new error seeing as its trying to compare an actor to an object, but why is it trying to compare the 2?
bahow Posted August 26, 2015 Posted August 26, 2015 Sorry, what I meant with <actor> was, put your actor property here. ObjectReference Property myActor Auto Event OnActivate(ObjectReference akActor) If(akActor == myActor) Debug.Trace("Test") EndIf EndEvent
Recommended Posts
Archived
This topic is now archived and is closed to further replies.