|
Post by niobruno on Apr 6, 2020 21:50:33 GMT
Hi,
I'm having struggle setting up the vTriggerGenericAction event with the instantiated character (if character is in the scene from beginning there are no issues)...
example: public void Something(vTriggerGenericAction targetAction) { ... }
How do i connect this function with the event on some object in the scene?
|
|
|
Post by Chronicman on Apr 6, 2020 23:14:01 GMT
You would have to set that up dynamically instead of manually. What are you trying to achieve maybe I can help you out.
|
|
|
Post by niobruno on Apr 7, 2020 21:46:12 GMT
I was basically trying to get the player enter the car, but ended up putting all the scripts on the car itself, and got the player prefab reference by its tag. Bit of a workaround, but everything is working as expected. 😅 Thank you
|
|