Thread: text
View Single Post
Old 03-19-2010, 08:19 PM   #4
Bridget
Banned
 
Bridget's Avatar
 
Join Date: Sep 2008
Class/Position: Soldier
Gametype: AVD
Affiliations: TALOS
Posts Rated Helpful 5 Times
Locations display on the HUD. If he wants it to just show a quick message on the screen, then he can use what I originally wrote before figuring locations would be a better way of doing things.

Code:
Base_Trigger = trigger_ff_script:new({ message = '', seconds = 5, color = Color.kYellow })

function Base_Trigger:ontouch(touch_entity)
	if IsPlayer(touch_entity) then
		local player = CastToPlayer(touch_entity)
		BroadCastMessageToPlayer(player, self.message, self.seconds, self.color)
	end
end

Jump_4_Trigger = Base_Trigger:new({ message = 'Jump 4. Hand Held.', seconds = 5 })
Code:
Name_Here = Base_Trigger:new({ message = 'Message to output here', seconds = float, color = COLOR})

Last edited by Bridget; 03-19-2010 at 08:24 PM.
Bridget is offline   Reply With Quote