playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - KillerCreeper

Pages: [1]
1
PlayMaker Help / Send RPC To Certain Player?
« on: July 05, 2019, 10:51:29 AM »
How can I make an RPC send to only a certain player? I'm trying to make it so when a player shoots, it sends a raycast out. If the raycast hits a player, it will send an RPC to only them that will damage them.

I have this video as a reference. At around 10:00, the last line of code. How can I do that, but in PlayMaker?

2
PlayMaker Help / Find Object By Name In Assets Folder
« on: June 26, 2019, 06:25:43 PM »
I am creating an item dropping system. When you drag and drop an item out of your inventory, it instantiates whatever object you have in front of the player. Each item has a string variable named "itemID". (I understand item ids are usually integers but I can always change that if strings ever become a problem in the future but that is beside the point.)

Is there any way to find a game object prefab in the assets folder with this itemID variable I have? Every item game object's name is their own itemID.

3
PlayMaker Help / Photon Failed To Network Remove Gameobject[SOLVED]
« on: June 10, 2019, 10:47:21 AM »
I have an item pickup script that, when hovering over on an item with your cursor at a certain distance and press F, it will delete the item and add it into the inventory. I keep getting this error when testing it with the second client that joined. Is there any solution to this?


Code: [Select]
Failed to 'network-remove' GameObject. Client is neither owner nor masterClient taking over for owner who left: View (0)1 on M16 Carbine (scene)
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
NetworkingPeer:RemoveInstantiatedGO(GameObject, Boolean) (at D:\Unity\Survival Inc\Assets\Photon Unity Networking\Plugins\PhotonNetwork\NetworkingPeer.cs:3463)
PhotonNetwork:Destroy(GameObject) (at D:\Unity\Survival Inc\Assets\Photon Unity Networking\Plugins\PhotonNetwork\PhotonNetwork.cs:2746)
HutongGames.PlayMaker.Actions.PhotonNetworkDestroy:doDestroy() (at D:\Unity\Survival Inc\Assets\PlayMaker PUN\Actions\PhotonNetworkDestroy.cs:37)
HutongGames.PlayMaker.Actions.PhotonNetworkDestroy:OnEnter() (at D:\Unity\Survival Inc\Assets\PlayMaker PUN\Actions\PhotonNetworkDestroy.cs:24)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2771)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2718)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2643)
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2685)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2253)
HutongGames.PlayMaker.Fsm:SendEventToFsmOnGameObject(GameObject, String, FsmEvent) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2622)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2389)
HutongGames.PlayMaker.Actions.SendEvent:OnEnter() (at D:\Unity\Survival Inc\Assets\PlayMaker\Actions\StateMachine\SendEvent.cs:42)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2771)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2718)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2643)
HutongGames.PlayMaker.Fsm:UpdateState(FsmState) (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:2787)
HutongGames.PlayMaker.Fsm:Update() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\Fsm.cs:1995)
PlayMakerFSM:Update() (at C:\Projects\Playmaker_1.9.0\Projects\Playmaker.source.unity\Assets\PlayMaker\PlayMakerFSM.cs:586)

4
PlayMaker Help / Raycast Follow Cursor?[SOLVED]
« on: May 29, 2019, 11:52:04 AM »
How can I get a raycast to follow the cursor and point in the direction that it is facing? I would use the Mouse Pick action but that is the most inconsistent thing I have ever used before.

5
PlayMaker Help / Photon and PlayMaker?[SOLVED]
« on: May 23, 2019, 11:21:25 PM »
I've import Photon from the Ecosystem, but I just get a bunch of errors. I don't know if you need to download the asset from the store, but I have PUN 2 installed as well. So does it not work with PUN 2 or is it just outdated?

6
PlayMaker Help / Get and Set FSM Variable Actions are broken.
« on: May 10, 2019, 06:04:53 PM »
When adding a get and set FSM variable action, it's like the FSM doesn't update. It'll work once, then, it's "getting" and "setting" the correct data, but it's not actually setting it. This is very annoying.

7
PlayMaker Help / PlayMaker is inconsistent.
« on: May 06, 2019, 06:35:31 PM »
I am creating an inventory system and working on swapping items at the moment. I've got it to get the two item variables of each of the slots that are getting swapped and switching their variables with each other. It works the first time, then, the second time, it doesn't. Then, if you try it a third time, it works and it keeps going in this loop. I've looked very thoroughly into this and it is getting the right variables each and every time. It's literally like PlayMaker just doesn't want to use the set variable actions every second time.
Is this a bug with PlayMaker or is there something wrong with how I've put this together?

8
PlayMaker Help / Set Parent Error [FIXED]
« on: April 30, 2019, 06:36:33 PM »
Whenever I use the Set Parent action, it gives me this error:
"Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
UnityEngine.Transform:set_parent(Transform)
HutongGames.PlayMaker.Actions.SetParent:OnEnter() (at Assets/PlayMaker/Actions/GameObject/SetParent.cs:38)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2768)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2715)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2643)
HutongGames.PlayMaker.Fsm:Start() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1926)
PlayMakerFSM:Start() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:555)
"

It's saying I need to set the worldPositionStays argument to false, but how do I do that?

9
PlayMaker Help / Playmaker is glitchy when editing prefab
« on: April 25, 2019, 01:54:13 PM »
So I am making an inventory system, with inventory slots. The inventory slots is a prefab and whenever I am editing the prefab, I can add states and such on the fsm. But whenever I simply click or try moving the state, or even try connecting an event on the state to go into a different state, it says "PlayMaker: Fixed Graph View Bounds", and it teleports the state somewhere, it'll take ages for me to find it again, making it impossible for me to add any functionality to the prefab. I don't know if it is just on mine or if this is a known bug, but it is very frustrating since it is so inconsistent as well. It only happens on prefabs.

10
PlayMaker Help / PlayerMaker Array Doesn't Work With Unity 2018.2
« on: August 13, 2018, 11:45:34 AM »
I've tried using "Mouse Pick 2d Event" and every time I play, I get this error:

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.MousePick2dEvent.DoRaycast () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:103)
HutongGames.PlayMaker.Actions.MousePick2dEvent.DoMousePickEvent () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:68)
HutongGames.PlayMaker.Actions.MousePick2dEvent.OnEnter () (at Assets/PlayMaker/Actions/Physics2D/MousePick2dEvent.cs:51)
HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState.OnEnter () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2767)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2714)
HutongGames.PlayMaker.Fsm.UpdateStateChanges () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2642)
HutongGames.PlayMaker.Fsm.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1925)
PlayMakerFSM.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:548)

Pages: [1]