IsBleedingOut question

Post » Wed Nov 26, 2014 4:24 pm

This is probably a very silly question but I cannot figure this out. I'm trying to get the game to check if an enemy is in the bleed-out state, if they are a follower goes up to them and adds them to a faction and change their outfit. But the problem I'm having is the line in bold is giving me this error:

e:\programs\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\DTCaptureScript.psc(11,32): required (...)+ loop did not match anything at input 'IsBleedingOut'

Spoiler

Actor Property DTAnitaRef Auto
Actor Property PlayerRef Auto

Function DTAnitaChainup()
If (PlayerRef.GetCombatState() == 1)
Debug.Trace("Player in combat")
If PlayerRef.GetCombatTarget() IsBleedingOut = true
Debug.Trace("Enemy bleeding out!")
endIf
endIf
endFunction

I'm pretty sure its the line in bold that is giving me the error but I have no clue how to fix it :(

User avatar
Curveballs On Phoenix
 
Posts: 3365
Joined: Sun Jul 01, 2007 4:43 am

Post » Wed Nov 26, 2014 7:55 am

If(PlayerRef.GetCombatTarget().IsBleedingOut() == True)

There were at least two problems with the line you highlighted:

- Incorrect syntax when calling the IsBleedingOut function. There was a missing dot operator (.) between the object (PlayerRef.GetCombatTarget(), which returns an Actor reference) and the member function call, and no parentheses after the function name.

- A single equals sign (=), which is used to assign values, was used instead of two equals signs (==), which is used for evaluation.

User avatar
Taylor Bakos
 
Posts: 3408
Joined: Mon Jan 15, 2007 12:05 am


Return to V - Skyrim