| 1 |
<!DOCTYPE html> |
| 2 |
<html><head> |
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 4 |
<title>highlight.uc</title> |
| 5 |
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (UnrealScript) - Theme (Breeze Dark)"/> |
| 6 |
</head><body style="background-color:#232629;color:#cfcfc2"><pre> |
| 7 |
<span style="color:#7a7c7d;">/**</span> |
| 8 |
<span style="color:#7a7c7d;">* Comment </span> |
| 9 |
<span style="color:#7a7c7d;">*/</span> |
| 10 |
<span style="color:#2980b9;">class</span> DH_SeqAvt_GiveExp <span style="font-weight:bold;">extends</span> SequenceAction; |
| 11 |
|
| 12 |
<span style="font-weight:bold;">var</span>() <span style="color:#2980b9;">float</span> expGive; |
| 13 |
<span style="font-weight:bold;">var</span> <span style="color:#2980b9;">float</span> result; |
| 14 |
|
| 15 |
<span style="color:#7a7c7d;">// line comment</span> |
| 16 |
<span style="font-weight:bold;">event</span> Activated() |
| 17 |
{ |
| 18 |
<span style="font-weight:bold;">local</span> DH_PlayerController PC; |
| 19 |
PC = DH_PlayerController(GetWorldInfo().GetALocalPlayerController()); |
| 20 |
PC.modifyExp(expGive); |
| 21 |
result = PC.currentEXP; |
| 22 |
} |
| 23 |
|
| 24 |
<span style="font-weight:bold;">defaultproperties</span> |
| 25 |
{ |
| 26 |
ObjName=<span style="color:#f44f4f;">"Reward Exp"</span> |
| 27 |
ObjCategory=<span style="color:#f44f4f;">"DH_PlayerController"</span> |
| 28 |
|
| 29 |
VariableLinks.Empty; |
| 30 |
VariableLinks(<span style="color:#f67400;">0</span>)=(ExpectedType=class’SeqVar_Float’, bWriteable=<span style="font-weight:bold;">false</span>, LinkDesc=<span style="color:#f44f4f;">"expGive"</span>, PropertyName=expGive) |
| 31 |
} |
| 32 |
</pre></body></html> |