Moving an entity with scripting [Animated] VERY EXPERIMENTAL
Here, I made a script on how to move a static entity with the SetEntityPos scriptline.
WARNING: Move only 1 object at a time. Can cause lag.
afAmountX = The amount to move on the X-axis
Can be both positive and negative.
afAmountY = The amount to move on the Y-axis
Can be both positive and negative.
afAmountZ = The amount to move on the Z-axis
Can be both positive and negative.
afSpace = The amount of space the object moves with, per frequence.
Must be above 0.
If used with a frequence at 0.01f:
0.01f is kinda slow.
0.02f is quicker.
afFreq = How often the object moves.
Must be above 0.
0.01f looks really smooth.
afAmountX = The amount to move on the X-axis
Can be both positive and negative.
afAmountY = The amount to move on the Y-axis
Can be both positive and negative.
afAmountZ = The amount to move on the Z-axis
Can be both positive and negative.
afTime = Duration of animation in seconds.
When the entity has moved, the function OnArrival(string &in asEntity) calls.
PHP Code:
void OnArrival(string &in asEntity)
asEntity = The entity that moved.
Variables used in this script:
float "MoveFreq_"+asObject
float "MoveAmountX_"+asObject
float "MoveAmountY_"+asObject
float "MoveAmountZ_"+asObject
float "MoveSpaceX_"+asObject
float "MoveSpaceY_"+asObject
float "MoveSpaceZ_"+asObject
int "Moving"+asObject
Scary heartbeat screen effects
A heartbeat script, that uses both screen effects and the heartbeat sound.
Spoiler below!
PHP Code:
////////////// //HEART BEAT//
//To start heartbeat effect, add both of these lines //SetLocalVarInt("Heartbeat", 1); //AddTimer("HeartBeat_1", 2, "HeartBeat"); // //To stop hearbeat use the following line //SetLocalVarInt("Heartbeat", 0);
RE: Flawless' thread of inspiration - MrBehemoth - 04-22-2015
Cool work! I like to see experimental modding. Got me thinking about portals and how they could be used. I have an idea for shooting a portal anywhere, instead of on set points... But I've got too much to do already.
RE: Flawless' thread of inspiration - FlawlessHappiness - 04-22-2015
(04-22-2015, 10:14 PM)MrBehemoth Wrote: Cool work! I like to see experimental modding. Got me thinking about portals and how they could be used. I have an idea for shooting a portal anywhere, instead of on set points... But I've got too much to do already.
Sounds cool! Something about creating entities I guess...
RE: Flawless' thread of inspiration - FlawlessHappiness - 04-23-2015
New thing out.
I did not make a second level :/
RE: Flawless' thread of inspiration - Streetboat - 04-23-2015
little did alexander know, daniel can always get away from his servants with a sick wall-run into a backflip move.
RE: Flawless' thread of inspiration - FlawlessHappiness - 04-23-2015
(04-23-2015, 08:52 PM)Streetboat Wrote: little did alexander know, daniel can always get away from his servants with a sick wall-run into a backflip move.
And thus Daniel Lantern-ran his way through the halls of Brennenburg.
RE: Flawless' thread of inspiration - Slanderous - 04-24-2015
Nice dude! That looks awesome.
RE: Flawless' thread of inspiration - HumiliatioN - 04-24-2015
Wow, really original ideas you got there, keep up the great work!
RE: Flawless' thread of inspiration - FlawlessHappiness - 05-04-2015
New script!
Moving an entity to another entity, or just a specific distance.
Is there anything you'd like to see in this script?
RE: Flawless' thread of inspiration - Mudbill - 05-04-2015