[Tool/Web/Other] [In Development] A New Powerful Scene Editor
#4

Quote:
Originally Posted by NaS
View Post
Apart from an Item name ("Gate1" in your example) could there be custom properties for Items?
So that I could for example add a "Health" attribute to any Item and access that value from the script? That would allow for completely setting up gamemodes/maps in the Editor. That's what I do with my Editor and it's damn useful!
That is a cool thing. I thought about it, and it could be done like the following:
pawn Code:
CMD:something(playerid, params[])
{
    Scene.SetProperty(scene, objGate1, "Health", 50);
    new health = Scene.GetProperty(scene, objGate1, "Health");
    return 1;
}
But I have to think about the actual implementation. GVars could be an option. As for now, I am focusing on the editor itself.

The same thing however can be done without the need of properties:

pawn Code:
new objHealths[MAX_DYNAMIC_OBJECTS];

CMD:something(playerid, params[])
{
    objHealths[objGate1] = 50;
    new health = objHealths[objGate1];
    return 1;
}
(unless you want to be able to specify predefined values for each object)
Reply


Messages In This Thread
[In Development] A New Powerful Scene Editor - by Sasino97 - 12.11.2018, 14:12
Re: [In Development] A New Powerful Scene Editor - by NaS - 12.11.2018, 15:04
Re: [In Development] A New Powerful Scene Editor - by Alexis17 - 12.11.2018, 19:10
Re: [In Development] A New Powerful Scene Editor - by Sasino97 - 13.11.2018, 08:51
Re: [In Development] A New Powerful Scene Editor - by Logic_ - 13.11.2018, 13:10
Re: [In Development] A New Powerful Scene Editor - by NaS - 13.11.2018, 14:08
Re: [In Development] A New Powerful Scene Editor - by Jking - 13.11.2018, 16:06
Re: [In Development] A New Powerful Scene Editor - by Eoussama - 13.11.2018, 16:47
Re: [In Development] A New Powerful Scene Editor - by JohnRastion - 23.11.2018, 11:50
Re: [In Development] A New Powerful Scene Editor - by Sasino97 - 28.11.2018, 10:16
Re: [In Development] A New Powerful Scene Editor - by PowerMwK - 29.11.2018, 10:21
Re: [In Development] A New Powerful Scene Editor - by Chaser98 - 08.12.2018, 15:19
Re: [In Development] A New Powerful Scene Editor - by RenanMsV - 25.01.2019, 15:07
Re: [In Development] A New Powerful Scene Editor - by logomines - 30.01.2019, 11:56
Re: [In Development] A New Powerful Scene Editor - by Kenton - 09.04.2019, 20:05
Re: [In Development] A New Powerful Scene Editor - by Crayder - 09.04.2019, 23:59
Re: [In Development] A New Powerful Scene Editor - by Kenton - 10.04.2019, 17:47
Re: [In Development] A New Powerful Scene Editor - by Joko147 - 11.04.2019, 03:20
Re: [In Development] A New Powerful Scene Editor - by Yukie - 11.04.2019, 03:30

Forum Jump:


Users browsing this thread: 2 Guest(s)