Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Matt_UV | |
Old Version | Published before Godot 3 was released. |
Hello, I have two objects in my scene (Some variables names are in French. Don’t worry, it doesn’t matter here ).
- Joueur, which is the player. Its script is
"res://Joueur/joueur.gd"
extends RigidBody2D export(String, "LOCAL", "NETWORK", "AI") var type = "LOCAL" export var vit_marche_max = 1200 export var vit_marche_min = 100 export var force_marche_sol = 1000 export var force_marche_air = 250 export var force_arret_sol = 300 export var force_arret_air = 100 export var val_saut = 700 export var duree_saut = .3
- Joueur 2 which is an AI. Its script is
"res://Joueur/AI.gd"
and it inherits from the fist one
extends "res://Joueur/joueur.gd" export var decision_delay = 1.5 export var aggressivity = 3
Thus, the inspector shows that :
(Note that the type of Joueur 2 has been manually modified from “LOCAL” to “AI”)
Here is my question: for Joueur 2, is it possible to separate the variables from the general script and the one from the inherited script?
There are subcategories for other elements, as the PhysicBody2D :
What I would like is something like this :
Do you know if this is possible ?
Thank you!
BTW, I opened an issue about it: Add a way to add categories to the script variables section from GDScript · Issue #4378 · godotengine/godot · GitHub
Bojidar Marinov | 2016-04-20 09:39