Scripts / [SOLVED] Impulse wave

Author
Message
DenZelik
5
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 12th Jul 2019 10:27
Hi, everybody

Please tell us how you can implement the creation of a "pulse" wave that pushes all nearby objects in front of the player?

Thank you in advance

The author of this post has marked a post as an answer.

Go to answer
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 12th Jul 2019 11:11 Edited at: 12th Jul 2019 11:12
This post has been marked by the post author as the answer.
Start here: https://forum.game-guru.com/thread/219758#msg2601608

The command to apply a physics push to an object is PushObject( objId, vx, vy, vz, rx, ry, rz ).

It is used in GraPhiX's custom explosion stuff which you can find in the tutorials section.

Basically you need to adapt that slightly to first find the entities in front of the player and only apply the force to those entities (they have to be dynamic entities in order that physics will be applied).
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-04-25 05:47:27
Your offset time is: 2024-04-25 05:47:27