View Issue Details

IDProjectCategoryView StatusLast Update
0000467Gameplay + OpenGL[All Projects] Featurepublic2017-03-29 09:34
ReporterNash 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Summary0000467: ACS ScriptCall - pass the Activator
DescriptionThe ability to pass the Activator of the ScriptCall to the called function.
TagsNo tags attached.

Relationships

Activities

Graf Zahl

Graf Zahl

2017-03-28 17:42

administrator   ~0001152

Added. If the function's first parameter is an Actor, the activator will be passed.
Note that no subclasses will be allowed as parameter type!
Nash

Nash

2017-03-28 18:09

reporter   ~0001153

"Note that no subclasses will be allowed as parameter type!"

I don't follow too clearly this part. Can you show what is not allowed by this rule?
Xaser

Xaser

2017-03-29 09:34

developer   ~0001167

The type for the ZScript function's first parameter must be Actor, i.e. not Weapon or PlayerPawn or MyCustomZScriptActor or whatnot. This just means that if you need a particular actor type in the script, you'll need to cast it explicitly.

Issue History

Date Modified Username Field Change
2017-03-23 05:15 Nash New Issue
2017-03-28 17:42 Graf Zahl Status new => resolved
2017-03-28 17:42 Graf Zahl Resolution open => fixed
2017-03-28 17:42 Graf Zahl Note Added: 0001152
2017-03-28 18:09 Nash Note Added: 0001153
2017-03-29 09:34 Xaser Note Added: 0001167