| Blockland Forums > Modification Help |
| Using FxDTSBrick::onactivate? |
| << < (2/3) > >> |
| tyler0:
--- Quote from: otto-san on June 06, 2011, 05:43:21 PM ---you're trying to centerprint nothing what --- End quote --- Heres how i did my centerPrint: centerPrint(%client,"Brick: " @ %brick @ ". Client: " @ %client @ ". Location: " @ %loc @ ". Rotation: " @ %rot,3); Its still messed up some how. |
| Kalphiter:
commandToClient(%client, 'centerPrint', ... |
| tyler0:
--- Quote from: Kalphiter on June 06, 2011, 06:01:09 PM ---commandToClient(%client, 'centerPrint', ... --- End quote --- Ok so i fixed it but still nothing :/ Here is the function so far: --- Code: ---package onActivate { function FxDTSBrick::onactivate(%brick,%client,%loc,%rot) { echo("Hello i am an echo lol1"); commandToClient(%client, 'centerPrint',"Brick: " @ %brick @ ". Client: " @ %client @ ". Location: " @ %loc @ ". Rotation: " @ %rot,3); echo("Hello i am an echo lol2"); Parent::onactivate(%brick,%client,%loc,%rot); echo("Hello i am an echo lol3"); } }; activatepackage(onActivate); --- End code --- All three echos are displayed in the command prompt |
| tyler0:
Could i get someone to look at the script above? I still haven't got it to work and seems like this should be a simple script. Weird that it isn't working.... |
| Greek2me:
Change this: commandToClient(%client, 'centerPrint',"Brick: " @ %brick @ ". Client: " @ %client @ ". Location: " @ %loc @ ". Rotation: " @ %rot,3); To this: %client.centerPrint("Brick: " @ %brick @ ". Client: " @ %client @ ". Location: " @ %loc @ ". Rotation: " @ %rot,3); |
| Navigation |
| Message Index |
| Next page |
| Previous page |