Search found 18 matches

by wabogenadod
Sat Feb 02, 2013 12:16 pm
Forum: RF Scripting
Topic: What could be wrong
Replies: 3
Views: 2193

Re: What could be wrong

Tried it but no. It doesn't load the script which makes me think its a formatting problem but i just can't find it...
Thanks
by wabogenadod
Tue Jan 29, 2013 10:11 pm
Forum: RF Scripting
Topic: What could be wrong
Replies: 3
Views: 2193

What could be wrong

I have made this code but i don't have a clue whats wrong with it. It must be a syntax error because the script doesn't load; I have typed it in correctly and I understand that it is sensitive to caps. { K_FIRE [72] // FIRE KEY - LEFT MOUSE K_AIM [73] // AIM KEY - RIGHT MOUSE K_FOR [15] // FORWARD -...
by wabogenadod
Sat Jan 05, 2013 12:02 pm
Forum: Level Design & Entity Usage
Topic: Logic gate use key..which key..
Replies: 11
Views: 4326

Re: Logic gate use key..which key..

You could use a scripted player that activates a trigger when a key is down:
If (IsKeyDown(which ever key)
(
ActivateTrigger(name of trigger);
)
by wabogenadod
Sat Jan 05, 2013 1:08 am
Forum: RF Scripting
Topic: setweapon not working?
Replies: 2
Views: 1625

Re: setweapon not working?

Try using SetPlayerWeapon(slot the weapon is in (value)); (low level)
by wabogenadod
Tue Dec 25, 2012 4:23 pm
Forum: Level Design & Entity Usage
Topic: Projectiles
Replies: 2
Views: 1818

Projectiles

Is there a way to use a weapon as a marker for, say, a care package?
eg:
Glow with light for an indefinite time
make a model go to were the projectile hit the floor
fade in the model so that it can be interacted with.

Thanks
by wabogenadod
Mon Dec 24, 2012 3:30 pm
Forum: RF Scripting
Topic: Whats the best way to learn?
Replies: 5
Views: 1960

Re: Whats the best way to learn?

I find the best way is to try to write a script while referring to the other scripts tO see how its done.
Don't be afraid to make misteaks. On the contray, change the text so that one part doesn't work and see the effect.
Doing this, you'll remember Scripting far faster!!!
by wabogenadod
Mon Dec 24, 2012 12:52 am
Forum: RF Scripting
Topic: IsKeyNotDown?
Replies: 1
Views: 2804

IsKeyNotDown?

Is there a way to check if a key is not down? For instance: if (IsKeyNotDown(What ever key)). Just so that I'm able to select weapons without jumping to the next one every frame but instead every time i press the button. Theres probably something in the manual but i can't find it so is there anyone ...
by wabogenadod
Sun Dec 23, 2012 1:41 pm
Forum: Level Design & Entity Usage
Topic: Keyboard and Triggers
Replies: 7
Views: 2606

Re: Keyboard and Triggers

Why is it that the levelcontroller is crashing my game when i have entered all of the attributes correctly?
by wabogenadod
Fri Dec 21, 2012 3:51 pm
Forum: Level Design & Entity Usage
Topic: Keyboard and Triggers
Replies: 7
Views: 2606

Re: Keyboard and Triggers

What needs to go in the entity attributes if the script is called levelcontroller(door)?
by wabogenadod
Fri Dec 21, 2012 1:47 pm
Forum: Level Design & Entity Usage
Topic: Keyboard and Triggers
Replies: 7
Views: 2606

Re: Keyboard and Triggers

Does a LevelController act like a trigger? Would this work? " { K_OpenDoor = [16] Setup[() { LowLevel("RunPlayer"); }] RunPlayer[() { If(IsKeyDown(K_OpenDoor)) { If(GetAttribute("points", "Player") > 75) { ModifyAttribute("points", -75, "Player") How would you trigger door???????????????????????????...
by wabogenadod
Fri Dec 21, 2012 1:37 pm
Forum: RF Scripting
Topic: Draw Text Parse Error
Replies: 4
Views: 1530

Re: Draw Text Parse Error

QuestOfDreams wrote:That should be:

Code: Select all

DrawText(toString(GetAttribute("points","Player")), 48,48, 255, 10, 255,255,255);
Why "toString()"

What does that do?
by wabogenadod
Fri Dec 21, 2012 11:30 am
Forum: RF Scripting
Topic: Draw Text Parse Error
Replies: 4
Views: 1530

Draw Text Parse Error

What is wrong with the command:

DrawText(GetAttribute("points","Player",48,48,255,10,255,255,255);

All that happens when i do it is that the pawn can't move and the console just says " :11: Parse error near "
I have declared points in player.ini and I can't see what could be wrong.
Thanks
by wabogenadod
Fri Dec 21, 2012 9:51 am
Forum: RF Scripting
Topic: generic player- camera won't attach and he's not moving
Replies: 7
Views: 2182

Re: generic player- camera won't attach and he's not moving

steven8 wrote:
wabogenadod wrote:Yeah, that's what the problem was.
Thanks
Excellent. QOD is the man, isn't he??
Deffinetly
by wabogenadod
Thu Dec 20, 2012 7:53 pm
Forum: Level Design & Entity Usage
Topic: Keyboard and Triggers
Replies: 7
Views: 2606

Keyboard and Triggers

Is it possible for a trigger to wait for a key to be pressed or a varriable to be above a certain point and then trigger?
Also, is it possible to have a door that can reduce a variable when activated. Are you able to tell me how this is possible.
Thanks
by wabogenadod
Thu Dec 20, 2012 7:44 pm
Forum: RF Scripting
Topic: generic player- camera won't attach and he's not moving
Replies: 7
Views: 2182

Re: generic player- camera won't attach and he's not moving

Yeah, that's what the problem was.
Thanks