PDA

View Full Version : Is it possible? (set varialbe value in editor)



Tonyformia
01-23-2012, 09:41 AM
As in topic. I created my class, placeable. can be volume or trigger no matter. Inside i have var, lets call it var int gate_number.

Is it possible when i put this class in editor to my map to set that value there? to this certain "gate" ? I want each gate to start with different value. Creating subclass for each will be stupid. But i don't know how to set this value in uscript depends on map open and quantity of gates and place where it stands as this will change in all levels i'm creating.

Is there way to add properties to F4 menu of my class in editor?
Or maybe someone can point me into good direction.

Also i would like to learn how to check on which platform-level my character is atm? In normal platform-style game, when jump up and down i want my game to track this. i was thinking to add triggervalues with platform-number setup on each edge. Or maybe will be better if i will just check position of character on axis and then depends on range of values i will set platform_level_number.

Thanks for any help and advice :D

ffejnosliw
01-23-2012, 09:57 AM
http://udn.epicgames.com/Three/UnrealScriptVariables.html#Editability

Graylord
01-23-2012, 09:59 AM
var (MyVarCategory) int MyInt;

The paranthesis will make it editable in the editor, the contents define where in the properties it will appear.

Tonyformia
01-23-2012, 11:34 AM
Thanks so much. I'm not native english speaker and sometimes it's dificult for me to find correct word to look around forum.
Thank you so much again.

Bandr3ws
01-23-2012, 11:50 AM
I was about to ask a similar question: Where can you view or edit variables declared on a controller?
You can edit the pawn variables by selecting the actor from the actor browser in UDK editor but how can you view the controller associated with that pawn. For example AI variables should probably be kept on the controller where they are used and I would like to edit those.
Thanks, Ben