Jump to content

Home

Is it possible to increment a float variable?


War Master

Recommended Posts

I want to declare a variable and have it increment by 1 after each of 4 specific actions have taken place. I need to test through an "if statement" if these actions are done to make the objective complete. Can you do nested "if statements"? If there's another way to do this please reply.

Link to comment
Share on other sites

Although scripting is coding of a form and the 'forum rules' list it as belonging in General Editing, I think most scripting is more appropriate for this forum.

 

It can be an important part of issues discussed here (i.e. how do I make my map do this?)

 

I've gone to General Editing for help on my scripts and find that most discussion is modeling and total conversion. (i.e. how do I make my lightsaber look like a pumpkin?)

 

I also see a bias in most forums toward MP which doesn't use any scripting.

 

Perhaps another forum just for us (SP scripting) weirdos would help.

Link to comment
Share on other sites

I strongly believe scripting should be in the mapping forum. Those who haven't made sp maps probably can't relate to what I'm saying. A func_static is pretty much useless without a script. What if you wanted a collapsing bridge in your map, it won't look realistic as a func_plat, you need to script the brushes to fall in a certain manner. ref_tags and target_scriptrunners aren't in Radiant for decoration. Scripting can take your map to a higher level by adding more variations and possibilities.

Link to comment
Share on other sites

Well, enough about forum talk and what belongs where. I though that you meant coding when you said you wanted to increment a float variable, which is done in code. BUT, I don't know how to do this in ICARUS. I'm sorry I caused a ruckus.

Link to comment
Share on other sites

The 'Rules' post states:

 

Scripting is NOT coding and should go into General Editing

 

 

This is that part I have an issue with.

 

And I understand that War Master has found a solution to his problem, but still General Editing seems like an odd place for scripting as I previously posted.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...