View Issue Details

IDProjectCategoryView StatusLast Update
0005103The Dark ModScript/Defpublic02.10.2020 11:37
ReporterDragofer Assigned To 
Status newResolutionopen 
Product VersionTDM 2.07 
Summary0005103: Allow script functions to be called with parameters
DescriptionMethods for calling script functions with parameters from ingame entities are few and usually require defining scriptobjects, which have a steeper learning curve than plain script functions.

This makes it more difficult to reuse a scripted setup because many spawnargs, entity names and script functions need to be renumbered by hand. An example for the kind of script I'd like to reuse is:
void reusable_script(entity mover, entity speaker, entity button).

I'd like to propose adding new spawnargs to atdm:target_callscriptfunction and various trigger brushes. They get passed when the script is called:
param3 etc.

In the above example, I could point param1 to the func_mover, param2 to the speaker and param3 to the button.
Ideally I'd like to be able to clone the whole setup and have the param spawnargs updated to the new entity names.
TagsNo tags attached.




03.01.2020 10:57

developer   ~0012039

Please send me a PM if you'd like me to construct a test map.


03.01.2020 15:53

developer   ~0012048

Related ticket: 0005105 Allow entities to pass self when calling script functions

Issue History

Date Modified Username Field Change
03.01.2020 10:55 Dragofer New Issue
03.01.2020 10:57 Dragofer Note Added: 0012039
03.01.2020 15:53 Dragofer Note Added: 0012048