Start Combat does not exist?

Post » Sun Jun 24, 2012 2:38 am

I am making a quest in which the player says something that angers a character, causing him to attack. So I went to the dialogue views, went on the Topic info window, and in the end script area. I put this.
StartCombat(Game.GetPlayer())
But then I get this error. Any idea why?
Starting 1 compile threads for 1 files...
Compiling "TIF__01011BDC"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__01011BDC.psc(9,0): StartCombat is not a function or does not exist
No output generated for TIF__01011BDC, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__01011BDC
User avatar
Sylvia Luciani
 
Posts: 3380
Joined: Sun Feb 11, 2007 2:31 am

Post » Sun Jun 24, 2012 3:15 pm

startcombat is an actor function, not a quest function


you would need to do something like akSpeaker.StartCombat(Game.GetPlayer())

depending on your dialogue
User avatar
Charlie Sarson
 
Posts: 3445
Joined: Thu May 17, 2007 12:38 pm

Post » Sun Jun 24, 2012 12:33 am

I think it needs Actor.StartCombat(Game.GetPlayer())

Bah, Amethyst beat me to it.
User avatar
Cathrine Jack
 
Posts: 3329
Joined: Sat Dec 02, 2006 1:29 am

Post » Sun Jun 24, 2012 1:12 pm

The reason its not working is because without the actor reference, your telling the 'quest' to start combat with the player, which of course is impossible. ;)
User avatar
Len swann
 
Posts: 3466
Joined: Mon Jun 18, 2007 5:02 pm

Post » Sun Jun 24, 2012 9:12 am

Thank you guys! This issue has been very annoying! I think I will stick to level designing, not quests :P
User avatar
YO MAma
 
Posts: 3321
Joined: Thu Dec 21, 2006 8:24 am


Return to V - Skyrim