Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: nFighter on March 02, 2017, 06:12:48 PM
-
Is it some reason why the action Get Vector Length don't have a checkbox Every Frame?
I've added a standard checkbox + OnUpdate() function to the GetVectorLength.cs and it works fine :)
But I'm afraid I could forget about it and it will be rewritten with the default function after the Playmaker update. Maybe it's possible to make this small edit a default?
-
Hi,
Indeed strange.
What you can do is :
on this part on the code :
public class GetVectorLength : FsmStateAction
Change "GetVectorLength" to (for example) "GetVectorLength2"
Then save as.. and save as GetVectorLength2.cs
save it in the PlayMaker Custom Actions/Vector3 folder (if the folders don't exist you can make them :) )
Now it can not be overwritten when you update PM.
-
Also you can find many custom actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
-
Thanks! I made a GetVectorLength2 action exactly as you suggest ;)
-
i need this action to have have Every Frame also, could someone tell me what i need to do to add that to the Get Vector Length action? i tried adding that "+ OnUpdate()" text that nFighter had on their OP, but i just get errors since i dont really know what im supposed to do with it.
-
Hi,
Now available on the Ecosystem, search for 'GetVector3Length'
-
thank you djaydino, i am checking for that on the ecosystem and i get no results from the search. maybe it'll show up later on.
-
Hi.
Oops!
I forgot to add a line that will make the action visible in the search list :)
it should be there now :)
-
there it is, thank you for making that available!
-
I confirm, in 2020 : "Get Vector Length" is not working. Thanks for this addionnal action :-)
-
Hi,
GetVectorLength works fine, it just doesn't run every update, that's all. Getting the length of a vector is a very costly operation, that's why originally this action did not feature the everyframe option,
I'll update that action so that the in next version of PlayMaker, it will have this everyframe option.
Bye,
Jean