View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005105||The Dark Mod||Script/Def||public||03.01.2020 13:22||02.10.2020 11:38|
|Product Version||TDM 2.07|
|Summary||0005105: Allow entities to pass self when calling script functions|
|Description||Entities like atdm:target_callscriptfunction or most trigger brushes currently don't seem to be able to pass variables when they call script functions. This makes them unsuitable for calling script functions with variable parameters. An example would be: void reusable_script(entity mover, entity speaker, entity button). Scriptobjects may already do this, but are more difficult for mappers to learn and use.|
As an alternative to a similar ticket I opened for this issue, I'd like to suggest that scriptfunctions can be passed "self" to refer to the entity from which they were called, similar to scriptobjects. This would allow the mapper to store variables on the calling entity as spawnargs, enhancing the mapper's ability to achieve diverse scripted effects.
|Tags||No tags attached.|