Can't move to a marker. *type mismatch*

Post » Wed Jan 09, 2013 6:55 pm

Static property COCMarker autoActor property playerRef autoEvent OnEffectStart (actor aktarget, actor akcaster)playerRef.moveto(COCMarker)COCMarkerHeader = Game.FindClosestReferenceOfTypeFromRef(COCMarker, akcaster, 2048)EndEvent

Error: type mismatch on parameter 1 (did you forget a cast?)

On line 10, which is the moveto line.

I've been stuck on this for a long time. Finally found the function to detect references without needing 500000 properties..

Anyway what I'm doing wrong here?
User avatar
Kristian Perez
 
Posts: 3365
Joined: Thu Aug 23, 2007 3:03 am

Post » Thu Jan 10, 2013 3:31 am

Change the Property type of COCMarker to "ObjectReference" instead of Static

- Hypno
User avatar
Sasha Brown
 
Posts: 3426
Joined: Sat Jan 20, 2007 4:46 pm

Post » Thu Jan 10, 2013 9:16 am

It should be PlayerREF.Moveto(COCMarkerHeading)
after cocmarkerheading is declared.

You can only move to the marker's reference what you're trying to do is move to a base object, which is like a Platonic form. It isn't real, it's more of an idea that can be instantiated.

Change the Property type of COCMarker to "ObjectReference" instead of Static

- Hypno

I don't think that'll work for what he's trying to do. He doesn't want to have to declare each individual reference of a COCMarkerHeading.
User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm

Post » Thu Jan 10, 2013 2:26 am

Yeah. There are 400+ COCMarkerHeadings in the game(dungeons at least. 3400+ total for everything else) XDDDDDD I would LOVE to go that route if I had the patience to write out that many properties.
User avatar
Mariaa EM.
 
Posts: 3347
Joined: Fri Aug 10, 2007 3:28 am


Return to V - Skyrim