MCPcopy Index your code
hub / github.com/4ian/GDevelop / std

Function std

GDevelop.js/__tests__/GDJSDisabledCodeGenerationIntegrationTests.js:34–39  ·  view source on GitHub ↗
(varName, value, { conditions, subEvents } = {})

Source from the content-addressed store, hash-verified

32 });
33
34 const std = (varName, value, { conditions, subEvents } = {}) => ({
35 type: 'BuiltinCommonInstructions::Standard',
36 conditions: conditions || [],
37 actions: [setVar(varName, value)],
38 events: subEvents || [],
39 });
40
41 const stdFalse = (varName, value, opts = {}) =>
42 std(varName, value, { ...opts, conditions: falseCondition });

Callers 3

stdFalseFunction · 0.70
stdTrueFunction · 0.70

Calls 1

setVarFunction · 0.70

Tested by

no test coverage detected