From 34cd02d0bb27e60013c729187177a8c4ff7fc9a4 Mon Sep 17 00:00:00 2001 From: shadowscion Date: Fri, 16 Apr 2021 17:46:28 -0500 Subject: [PATCH] Create e2m_example_basic.txt --- e2m_example_basic.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 e2m_example_basic.txt diff --git a/e2m_example_basic.txt b/e2m_example_basic.txt new file mode 100644 index 0000000..f5cd8be --- /dev/null +++ b/e2m_example_basic.txt @@ -0,0 +1,20 @@ +@name e2m_example_basic +@inputs +@outputs +@persist +@trigger + +# assign number of controllers you want on the entity +P = p2mCreate(2, entity():pos(), entity():angles()) + +# push to the desired controller index +P:p2mSetColor(1, vec(255, 0, 0)) +P:p2mPushModel(1, "models/props_borealis/bluebarrel001.mdl", vec(), ang()) +P:p2mPushModel(1, "models/props_borealis/bluebarrel001.mdl", vec(55,0,0), ang()) + +# +P:p2mSetColor(2, vec(0, 255, 0)) +P:p2mPushModel(2, "models/props_borealis/mooring_cleat01.mdl", vec(0,0,50), ang(45,0,0)) + +# build +P:p2mBuild()