edited July 2015 in Makinom Support
so need to know what im doing wrong im trying to set some fields from makinom to a script
i get no warnings or errors so im lost on why this isnt changing my fields heres the schematic field set up an the script.

script it self works as intended does what its suppose to do but i cant seem to modify my script from makinom which is what needs to be done in order to relate my health settings from ork to my script so ork will change the health... i know this sounds wierd but its so i can use a few things in the script my script connects to...


schematic

image


using UnityEngine;
using System.Collections;
using AdvancedShooterKit;

public class pullhpdata : MonoBehaviour {

public int currenhp;
public int maxhp;
public Health HPscript;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
HPscript.currentHealth = currenhp;
HPscript.maxHealth = maxhp;
}
}
Post edited by wtyson on
new website can be found here http://www.fore-loregames.com

Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

or check out the face book page here https://www.facebook.com/ForeLoreGames
Sign In or Register to comment.