One other question maybe it's not of this topic , well only a little
1If i wanted that object "TheUsable actor" , to be spawned in the map autoamtically , "any map" how would i do it without the editor
So it would be place it through urnealscript
2 If i wanted to destroy that object , make it dissapear , given an input how would i do it? "just the fucntion , or variable to change to make it dissapear"
3 How do i get the player position ( guess what i wanna do a dropping system : ))
to spawn an object in runtime you need to use the spawn function, to destroy it you need to use YourObject.Destroy()
and the last one, depends on why you are handling things, most of the time if you are trying to drop something from the player controller, you can use Pawn.Location.
i just need the palyer location one so that's 3
yes i got to spawn it and destroy it , but i need the palyer loc , and assign it to the spawn location wich i guess both are vectors
Another question jsut to get general information
is there a way to get a new key , some functionality ?
because if m not wrong you can0t drop weapons in UT game
so i'd like to create my own key , any tutorial out theere?
im a use that , it gets ticked all the time right?
if you are talking about to assign a key to do an specific function you can use bindkey to call an exec function from the player controller.
the pawn.location is ticked always.
if you want to see some good tutorials please check this site
is a good one
Ok i have another problem in order to complete my dropping system , i have to call a function from the class " USABLE ACTOR " to the CLass " GladiatorController"
WorldInfo.Game.Broadcast(self, "you spawned");
Player Controller exec Funct
exec function additembykey()
the first one works ,
but UsableActor.spawn , well i jsut get the typical error of bad command or missing expression
Can you place exec functions and keybind them on an actor class such ?
If you want to start programming, you need to start using the UDN -> http://udn.epicgames.com/Three/ExecFunctions.html.
Im more likely looking on how to acces Usableactor Functions from pawn or controller , and call them .
Also i created a function in my class UsableActor , but ican't acces gladiator pawn there , how is that?
Aren't we lucky that we got the UDN & also this page might be good!.
Originally Posted by Neongho
Use UnCodeX to browse the class files and find what functions, variables and relationships exist.
If i use references , the varaibles doesen't change
so it's useless also i can't call functions like the spawn function of the actor
and the exec functions doesen't work " in the case you sue them for keybinding" in a class wich is not cotnroller or pawn
Ah ok i did somethign like this Pickup = spawn(class'usableActor',,, Pawn.Location); using my reference usableActor PIckup
Tags for this Thread