News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 22nd Sep 2009, 07:30 PM   #1
Registered User
Join Date: Jan. 21st, 2008
Posts: 210
Dynamic Tally Scripted Texture

I'm trying to create a new form of scripted texture that when triggered, increases a variable mathematically by one, then reports the number to a scripted texture. My first guess at this compiled, but displayed no numbers. My guess is the problem lies in the fact that I haven't told it WHEN to render (or re-render) the texture, but I can't seem to call that function successfully.

class ScoreKeeperTexture expands ClientScriptedTexture;

var() Font Font;
var() color FontColor;
var() float YPos[3];
var() float XPos[2];
var string score;
var int scorecount;

simulated function PostBeginPlay()
	SetTimer( 1.0, true );
	scorecount = 0;
	function Trigger( actor Other, pawn EventInstigator )

SetTimer( 1.0, true );

simulated function Timer()

score = string(scorecount);

simulated event RenderTexture(ScriptedTexture Tex)

Tex.DrawColoredText( XPos[0], YPos[0], score, Font, FontColor );

How to play NAB

Rajada is offline   Reply With Quote

scripted, texture

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 09:28 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2015, vBulletin Solutions, Inc.

Copyright ©1998 - 2015, BeyondUnreal
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer